[POST] .../v1/brand/add
Creates a new brand. Use this method to create a brand before assigning it to items or using it in catalog filters. It creates one brand and returns new_id after validating that name is provided and no longer than 150 characters. The caller must have brand add permission; missing body, invalid name, denied access, duplicate or storage validation failures and persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | String | Required | Brand name. It cannot be empty and must be no longer than 150 characters. |
Request Example
{
"name": "Acme"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Insert | Created record result. |
Response Example
{
"ok": true,
"result": {
"new_id": 12
}
}