Skip to main content

Create a category

Create a new category.

Parameters

name
string
required
Name for the category.
parent
string
ID of the parent category.

Returns

Returns the created category object. Throws an error if some parameters are not valid.

post
/api/categories
curl -X POST https://{workspace}.documocu.com/api/categories \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"created_at": "2024-05-14T12:35:40+00:00",
"id": "cat_7vd1kynnir8fxdg6qgtgvuom",
"name": "Occaecati",
"updated_at": "2024-05-14T12:35:40+00:00"
}