Create Category
This API creates a new template category within a template library (My Templates or Org Templates).
Endpoints
OAuth Scope
WorkDrive.libraries.categories.CREATECopied!
curl --request POST \
--url https://www.zohoapis.com/workdrive/api/v1/category \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/vnd.api+json' \
--data '{"data":{"attributes":{"category_name":"Marketing","library_id":"ly9zm3c10f18ca7e3422db10f5b335d33b0cc"},"type":"category"}}'Request Body
application/vnd.api+jsondataJSON Object(Required)
Hide Sub-Attributes
attributesJSON Object(Required)
Hide Sub-Attributes
category_namestring(Required)
Name of the category
library_idstring(Required)
The template library ID of My Templates/Org Templates where the category is to be created
typestring(Required)
The JSON:API resource type. Always "category".
Allowed Values :
Show Values ▾
categoryCopied!
Copy all as JSON Array
{
"data": {
"attributes": {
"category_name": "Marketing",
"library_id": "ly9zm3c10f18ca7e3422db10f5b335d33b0cc"
},
"type": "category"
}
}
{
"data": {
"id": "ntp2o497e00aef2944ab3a752b16d5f2a0197",
"type": "category",
"attributes": {
"category_name": "My Category 8",
"library_id": "ntp2oe1674ac34a8f429aa9ad52e2c55de8a8",
"status": 1
},
"links": {
"self": "https://www.zohoapis.com/workdrive/api/v1/category/ntp2o497e00aef2944ab3a752b16d5f2a0197"
}
}
}
{
"errors": [
{
"id": "TL001",
"title": "Unable to create Template Category"
}
]
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.