iotoms Docs

Get a category

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

Returns one product category by its ID, or 404 if it does not exist. The category is returned directly, not inside the usual status/message envelope.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Response Body

OK

*/*
  1. response
id?|

Unique numeric ID of the category. Set by the server; omit it when creating.

Formatint64
name*string

Category name. Required, must not be blank, and must be unique.

modifiedTime*string

Time the category was created (ISO 8601 date-time). Set by the server; renaming the category does not change it.

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