Update a style
PUT
Updates an existing style. The response is the bare object, without the standard {status, message, data} envelope.
How to use it
- Get the style ID from List styles.
- Send the full style with the new name; it must be unique and not blank.
- Items that use this style show the new name.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64application/json- body
id?|Numeric style ID; use it as styleId on items.
Format
int64name*stringStyle name, unique across the catalog.
modifiedTime*stringWhen the style was last changed (ISO 8601 timestamp).
Format
date-timeOK
*/*- response
id?|Numeric style ID; use it as styleId on items.
Format
int64name*stringStyle name, unique across the catalog.
modifiedTime*stringWhen the style was last changed (ISO 8601 timestamp).
Format
date-timeExample Request
curl -X PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/styles/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'Example Response
{ "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}