...
...
...
...
Method description
Upload Create a new image for a link .
Security
The calling user must have the EB_ROOT, EB_ADMIN, EB_APP, SEARCH_ADMIN or SEARCH_MANAGER role for this instance or the global client {instance_id}.
...
URI Parameters
None
...
Requests
Code Block |
---|
The image to be used for the link. |
...
The proper Content Type must be specified on the request headers. |
...
The file size is limited to 200KB |
Response format and codes
...
Responses
204
...
- item has been
...
created
Also, a Location header pointing to the actual image URL.
400 - Invalid parameters. Error response will include details
Type: application/json
Code Block | |||
---|---|---|---|
|
...
When the image has been successfully uploaded, a 204 will be returned with a Location header pointing to the actual image URL.
Dependencies
...
| |
{
"code": "validation_error",
"details": [
{
"message": "1 is not of type 'boolean'",
"path": ".enabled"
}
],
"message": "Error validating JSON",
"status": "error"
} |
401 - the user performing the action doesn't meet the security criteria
Type: application/json
Code Block | ||||
---|---|---|---|---|
| ||||
{
"code": 401,
"details": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
"message": "Unauthorized",
"status": "error"
} |