[POST] .../v1/sizechart/add
Creates a new size. Use this method to create a size reference value before assigning it to items or size-based catalog attributes. It creates one size and returns new_id after validating that name is provided and no longer than 150 characters. The caller must have size 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 | Size name. |
Request Example
{
"name": "M"
}
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": 3
}
}