Returns all categories for the given project. To filter by type, pass the “type” parameter, which can be one of “message”, “file”, “writeboard” or “link”.
{
"categories":[
{
"id":"40622310",
"name":"Assets",
...
},
{
"id":"76859314",
"name":"Copywriting",
...
},
...
]
}
Returns a single category identified by its integer ID.
{
"category":{
"id":"77749177",
"name":"Code",
...
}
}
Creates a new category of the given type for the given project. The “type” attribute is required and must be one of “message”, “file”, “writeboard” or “link”.
{
"category":{
"name":"Code",
"type":"message"
}
}
Returns HTTP status code 201 (“Created”) on success. The response contain the new category ID. On failure, a non-200 status code will be returned, possibly with error information in JSON format as the response's content.
{
"category-id":"72280414"
}
Updates an existing category identified by its integer ID.
{
"category":{
"name":"Code"
}
}
Returns HTTP status code 200 on success, or any other code (and possibly error information in JSON format) on error.
Deletes the category identified by its integer ID.
Returns HTTP status code 200 on success, or any other code (and possibly error information in JSON format) on error. Note that only categories without elements can be deleted.