Update a gallery image
PUT
Replaces the image URL of a gallery entry. The URL must not already be used by another entry. Items that reference the entry show the new image.
How to use it
- Take the entry id from List gallery images.
- Send the new imageUrl; it must be unique in the gallery.
- The entry keeps its id, so items linked to it now point at the new image.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64application/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 PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/image-gallery/0' \ -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"}