/<instance_id>/links/{link_id}/image - POST

Method description

Create a new image link for the client {instance_id}.

URI Parameters

None

Requests

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


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

Example application/json
{
  "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

Example application/json
{
  "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"
}