iotoms Docs

Update a brand

PUT
/api/v1/catalog/attributes/brands/{id}

Updates an existing brand. The response is the bare object, without the standard {status, message, data} envelope.

How to use it

  1. Take the brand id from List brands.
  2. Send the new name; it must be unique and not blank.
  3. Items linked to the brand keep the link and show the new name.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Request Body

application/json
  1. body
id?|

Unique ID of the brand. Set by the server; use it as brandId on items.

Formatint64
name*string

Brand name. Required, must not be blank and must be unique for the merchant.

modifiedTime*string

When the brand was last saved. Filled in with the current time when you leave it out.

Formatdate-time

Response Body

OK

*/*
  1. response
id?|

Unique ID of the brand. Set by the server; use it as brandId on items.

Formatint64
name*string

Brand name. Required, must not be blank and must be unique for the merchant.

modifiedTime*string

When the brand was last saved. Filled in with the current time when you leave it out.

Formatdate-time
Example 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"}