iotoms Docs

Update a size

PUT
/api/v1/catalog/attributes/sizes/{id}

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

  1. Find the size ID with List sizes.
  2. Send the full size object with its name; fields you leave out are reset to defaults (status becomes active).
  3. The size is replaced and returned; a missing ID returns not found.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Request Body

application/json
  1. body
id?|

Numeric size ID; use it as sizeId on items.

Formatint64
name*string

Size name, unique across the catalog.

status*string

Size status, e.g. active.

modifiedTime*string

When the size was last changed (ISO 8601 timestamp).

Formatdate-time

Response Body

OK

*/*
  1. response
id?|

Numeric size ID; use it as sizeId on items.

Formatint64
name*string

Size name, unique across the catalog.

status*string

Size status, e.g. active.

modifiedTime*string

When the size was last changed (ISO 8601 timestamp).

Formatdate-time
Example 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"}