Edit

[POST] .../v1/sizechart/edit

Edits a size. Use this method to update an existing size reference value while preserving references from item data. It returns row_affected and requires a positive id plus a valid name no longer than 150 characters according to the request model validation. The caller must have size 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 Size ID.
name String Required Size name.

Request Example

{
  "id": 3,
  "name": "Medium"
}

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
  }
}