Get all categories for a specific project
GET/categories/:projectId
Get all categories for a specific project
Request
Path Parameters
projectId projectIdrequired
ID of the project to retrieve categories for
Query Parameters
categoryId categoryId
Optional ID of the category to treat as the root
name string
Search for categories by name
page integer
Possible values: >= 1
Default value: 1
Specify the page number for pagination (default is 1).
limit integer
Default value: 10
Specify number of results per page at top-level in tree (default is 10, 0 gets all results).
Responses
- 200
- 403
- 404
- 500
- default
Categories successfully retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
id categoryId (string)
Unique identifier for Category
children
object[]
name string
Category name
children
id string
Category Id
name string
Category name
{
"id": "C16w81Bvr0",
"children": [
{
"name": "Dragons",
"children": {},
"id": "CWZTp1wnm"
}
],
"name": "Fantasy animals"
}
[
{
"children": [
{
"id": "C17r3cW2m",
"children": [
{
"id": "Cl1RfnQTy",
"children": [],
"name": "Dragons"
}
],
"name": "Magical Creatures"
},
{
"children": [
{
"name": "Tal'Dorei",
"children": [],
"id": "C16naMbvS"
}
],
"id": "CkIaWdWRL",
"name": "Beasts of Burden"
}
],
"id": "C16w81Bvr0",
"name": "Fantasy animals"
}
]
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...