[POST] .../v1/producer/add
Creates a new producer. Use this method to create a producer before assigning it to items or using it in manufacturer-based catalog filters. It creates one producer and returns new_id after validating that name is provided and no longer than 150 characters. The caller must have producer 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 | Producer name. It cannot be empty and must be no longer than 150 characters. |
Request Example
{
"name": "Acme Factory"
}
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": 15
}
}