Update a size
PUT
Replaces a product size by id with the object you send. Send every field: anything left out is reset to its default. Returns the updated size as the response body.
How to use it
- Find the size ID with List sizes.
- Send the full size object with its name; fields you leave out are reset to defaults (status becomes active).
- The size is replaced and returned; a missing ID returns not found.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64application/json- body
id?|Numeric size ID; use it as sizeId on items.
Format
int64name*stringSize name, unique across the catalog.
status*stringSize status, e.g. active.
modifiedTime*stringWhen the size was last changed (ISO 8601 timestamp).
Format
date-timeOK
*/*- response
id?|Numeric size ID; use it as sizeId on items.
Format
int64name*stringSize name, unique across the catalog.
status*stringSize status, e.g. active.
modifiedTime*stringWhen the size was last changed (ISO 8601 timestamp).
Format
date-timeExample Request
curl -X PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/sizes/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'Example Response
{ "id": 0, "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z"}