Add new attribute
POST/attributes
Creates a new attribute
Request
Query Parameters
Site Identifier
- application/json
Body
required
attribute
object
required
Attribute Key
Data Type of Attribute
Possible values: [STRING
, NUMBER
, BOOLEAN
, KEY_ONLY
, PUBLICATION
, WATERMARK
]
STRING
Type of Attribute
Possible values: [STANDARD
, OPA
]
STANDARD
watermark
object
Watermark text
Watermark Rotation
Watermark Image Document Id
Watermark Scale
Possible values: [FIT_BEST
, ORIGINAL
]
position
object
Watermark X Position Anchor
Possible values: [LEFT
, RIGHT
, CENTER
]
Watermark Y Position Anchor
Possible values: [TOP
, BOTTOM
, CENTER
]
X offset
Y offset
Responses
- 201
- 400
201 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Response Message
{
"message": "string"
}
400 OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}