Update a brand
PUT
Updates an existing brand. The response is the bare object, without the standard {status, message, data} envelope.
How to use it
- Take the brand id from List brands.
- Send the new name; it must be unique and not blank.
- Items linked to the brand keep the link and show the new name.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64application/json- body
id?|Unique ID of the brand. Set by the server; use it as brandId on items.
Format
int64name*stringBrand name. Required, must not be blank and must be unique for the merchant.
modifiedTime*stringWhen the brand was last saved. Filled in with the current time when you leave it out.
Format
date-timeOK
*/*- response
id?|Unique ID of the brand. Set by the server; use it as brandId on items.
Format
int64name*stringBrand name. Required, must not be blank and must be unique for the merchant.
modifiedTime*stringWhen the brand was last saved. Filled in with the current time when you leave it out.
Format
date-timeExample Request
curl -X PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/brands/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"}