iotoms Docs

Get a subcategory

GET
/api/v1/catalog/attributes/subcategories/{id}

Returns one catalog subcategory by its numeric id, as the whole response body. Returns 404 if it does not exist.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Response Body

OK

*/*
  1. response
id?|

Numeric subcategory ID; use it as subcategoryId on items.

Formatint64
name*string

Subcategory name, unique across the catalog.

modifiedTime*string

Timestamp stored when the subcategory was created (ISO 8601). Renaming it does not change it.

Formatdate-time
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/catalog/attributes/subcategories/0'
Example Response
{  "id": 0,  "name": "string",  "modifiedTime": "2019-08-24T14:15:22Z"}