Get all parent categories for a specific category
GET/category/:categoryId
Get all parent categories for a specific category
Request
Path Parameters
categoryId stringrequired
ID of the category to retrieve parent categories for
Query Parameters
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 the number of projects per page (default is 10, 0 gets all results).
sortBy string
Possible values: [name
]
Field to order the results by. Default is 'name'.
sortOrder string
Possible values: [asc
, desc
]
Default value: desc
'asc' for ascending or 'desc' for descending order. Default is 'desc'.
Responses
- 200
- 400
- 403
- 404
- 500
- default
Categories successfully retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
name string
id string
[
{
"name": "Fantasy World",
"id": "COLIRhOdC"
}
]
[
{
"COLIRhOdC": "Fantasy World"
},
{
"C1b0Qxm7R": "Mythical Creatures"
},
{
"C12EgCRKW": "Hybrid Creatures"
},
{
"C12EgCRKW": "Hippogryph"
}
]
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Bad Request"
}
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...