Update a color
Replaces a product color, identified by its numeric ID, with the name, status and modified time in the body. The response is the bare object, without the standard {status, message, data} envelope.
How to use it
- Get the color ID from List colors.
- Send the full color with the new name (unique and not blank) and status; fields left out fall back to their defaults.
- Items that use this color show the new name.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/json- body
id?|Color ID. Set by the server; use it in the URL of Get, Update and Delete a color.
int64name*stringColor name shown on items, e.g. "Navy". Required, and must be unique across the merchant's colors.
status*stringFree-text status for the color. Defaults to "active".
modifiedTime*stringWhen the color was last changed, ISO 8601. Defaults to the current time if not sent.
date-timeOK
*/*- response
id?|Color ID. Set by the server; use it in the URL of Get, Update and Delete a color.
int64name*stringColor name shown on items, e.g. "Navy". Required, and must be unique across the merchant's colors.
status*stringFree-text status for the color. Defaults to "active".
modifiedTime*stringWhen the color was last changed, ISO 8601. Defaults to the current time if not sent.
date-timecurl -X PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/colors/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'{ "id": 0, "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z"}