Get a category
GET
/categories/{id}
The shape is identical to one element of categories.list. A foreign, unknown or soft-deleted id is 404 NOT_FOUND.
Requires scope: catalog:read
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Get a category
Media typeapplication/json
object
Examplegenerated
{ "data": { "depth": 1, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "version": "example" }}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}