Retrieve a Category
GET/v1/categories/:id
Retrieve a Category
Request​
Path Parameters
id stringrequired
Id of the Category
Responses​
- 200
- 400
- 401
- 403
- 404
Successfully retrieved a Category
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
Example:
category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
name string
Example:
Environmental
imageUrl stringnullable
Example:
categories/3.png
createdAt date-time
Example:
2020-10-13T17:46:54.000Z
object string
Example:
Category
{
"data": {
"id": "category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Environmental",
"imageUrl": "categories/3.png",
"createdAt": "2020-10-13T17:46:54.000Z"
},
"object": "Category"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
bad_request
title string
Example:
Bad request
message string
Example:
One or more of the inputs were invalid
reasons string[]
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Unauthorized
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
forbidden
title string
Example:
Forbidden
message string
Example:
Access is denied due to insufficient privileges
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to insufficient privileges"
}
}
The specified resource was not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
not_found
title string
Example:
Resource not found
message string
Example:
This endpoint is unavailable or can not be found
{
"error": {
"code": "not_found",
"title": "Resource not found",
"message": "This endpoint is unavailable or can not be found"
}
}
Loading...