Create a brand
POST
Creates a brand and returns it with status 201. The response is the bare object, without the standard {status, message, data} envelope.
How to use it
- Send a unique, non-blank name.
- Use the returned id as brandId on items (Create an item); sales by brand then report under it.
BearerAuthheader
AuthorizationBearer <JWT>application/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 POST 'https://beta.iotoms.com/api/v1/catalog/attributes/brands' \ -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"}