[POST] .../v1/brand/edit
Edits brand. Use this method to update an existing brand name without changing item history or previously created documents. It returns row_affected and requires a positive id plus a non-empty name no longer than 150 characters before saving. The caller must have brand edit permission; missing body, invalid id or name, denied access, missing records, related-data restrictions and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Brand ID. The value must be greater than 0. |
| name | String | Required | Brand name. It cannot be empty and must be no longer than 150 characters. |
Request Example
{
"id": 12,
"name": "Acme Premium"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}