Skip to main content
Version: FINAL-1.0.0

Get Category Attributes

getapi.bunnystudio.com/categories/{id}/attributes

This endpoint returns all the attributes of a category.

Requirements

Authentication

Path parameters

id
string
Bunny Studio ID of the category you want to get the attributes

Request example

 curl --request GET \ 
--url https://api.bunnystudio.com/categories/CATEGORY_ID \
--header "x-access-token: YOUR_TOKEN" \

Response format

id
string
ID of the attribute
name
string
Name of the attribute
defaultValue
string or number
Default value of the attribute

Response example

  [
{
"id": "language",
"name": "Language",
"defaultValue": "eng-us",
}
...
]

Error responses

500 Not categories attributes

  {
status: 500,
type: 'NOT_CATEGORIES_ATTRIBUTES',
message: 'There was an error getting all the attributes of the category, please talk with our support team',
}

422 Category not authorized

  {
status: 422,
type: 'CATEGORY_NOT_AUTHORIZED',
message: 'The category selected is not Authorized for API projects,
}

422 Id required

  {
status: 422,
type: 'ID_REQUIRED',
message: 'The field "\id\" is required',
}

403 Forbidden

  {
status: 403,
type: 'FORBIDDEN',
message: 'You do not have permission to do this action',
}