Categories
Get a Category
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/categories/{categoryId} |
Accept | - |
Content-Type | application/json |
Description | Retrieves a category by its ID. |
- Request
- Query
(empty) - Body
// (empty)
- Query
- Response
type CategoryView = { category: Category }
Get a Category by Slug
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/categories/${slug} |
Accept | - |
Content-Type | application/json |
Description | Retrieves a category by its slug. |
- Request
- Query
(empty) - Body
// (empty)
- Query
- Response
type CategoryView = { category: Category }
Batch Get Categories
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/categories/batch |
Accept | - |
Content-Type | application/json |
Description | Retrieves multiple categories by its IDs. Can fetch up to 25 categories at once. |
-
Request
-
Query
Param Required? Default Type Description Example ids[] O - string[] IDs of categories to fetch. ?ids[]=42&ids[]=37 -
Body
// (empty)
-
-
Response
type CategoriesView = { categories: Category[] }
Updated 4 months ago