Returns all categories.
{
"categories":[
{
"id":"14922807",
"name":"Assets",
...
},
{
"id":"62098509",
"name":"Copywriting",
...
},
...
]
}
Returns a single category identified by its integer ID.
{
"category":{
"id":"14922807",
"name":"Code",
...
}
}
Creates a new category.
{
"category":{
"name":"Code",
"color":"#FFFFFF"
}
}
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":"20195810"
}
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.