Add a gallery image
POST
Adds an image URL to the catalog image gallery so items can reference it by ID. The URL must be unique across the gallery.
How to use it
- Host the image and send its public URL as imageUrl; it must not already be in the gallery.
- Keep the returned id; items reference the image by it.
BearerAuthheader
AuthorizationBearer <JWT>application/json- body
id?|Gallery entry identifier. Set by the server; items reference the image by this id.
Format
int64imageUrl*stringPublic URL of the image. Required and must be unique across the gallery.
modifiedTime*stringDate and time (ISO 8601) the entry was last saved. Defaults to the time of saving when omitted.
Format
date-timeOK
*/*- response
id?|Gallery entry identifier. Set by the server; items reference the image by this id.
Format
int64imageUrl*stringPublic URL of the image. Required and must be unique across the gallery.
modifiedTime*stringDate and time (ISO 8601) the entry was last saved. Defaults to the time of saving when omitted.
Format
date-timeExample Request
curl -X POST 'https://beta.iotoms.com/api/v1/catalog/attributes/image-gallery' \ -H 'Content-Type: application/json' \ -d '{ "imageUrl": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'Example Response
{ "id": 0, "imageUrl": "string", "modifiedTime": "2019-08-24T14:15:22Z"}