Data Templates and Custom Fields
In WorkDrive, you can create data templates and associate the required files and folders with them by adding custom information or properties. Once you associate files and folders to a data template with custom values, you can easily search for and manage data using the Data Templates filter. Learn more about Data Templates in WorkDrive
Custom Field Types
| Custom Field Type | Value Format | Supported field_properties |
| text | string |
|
| multiline_text | string |
|
| number | all type of numeric value |
|
| datetime | date time in milli second |
|
| date | date in milli second |
|
| yes_or_no | boolean |
|
| dropdown | value in given choice list |
|
| radio | value in given choice list |
|
| checkbox | values in given choice list as JSON Array |
|
| valid email address |
| |
| multi_email | valid email address in JSON array format |
|
Download Data Templates and Custom Fields OpenAPI Document
Create Data Template
This API creates a new data template.
A new 'data_template_id' is created when you create a new data template.
Endpoints
OAuth Scope
WorkDrive.datatemplates.CREATECopied!
curl --request POST \
--url https://www.zohoapis.com/workdrive/api/v1/teams/{team_id}/datatemplates \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/vnd.api+json' \
--data '{"data":{"attributes":{"name":"Recruitment - 2020","description":"Associate files and folders of all candidates registered for recruitment in 2020"},"type":"datatemplates"}}'Path Parameters
team_idstring(Required)
A unique ID of the team in which the data template is created.
Request Body
application/vnd.api+jsondataJSON Object(Required)
Hide Sub-Attributes
attributesJSON Object(Required)
Hide Sub-Attributes
namestring(Required)
A name for the data template.
descriptionstring(Optional)
A description for the data template.
typestring(Required)
The JSON:API resource type. Always "datatemplates".
Allowed Values :
Show Values ▾
datatemplatesCopied!
Copy all as JSON Array
{
"data": {
"attributes": {
"name": "Recruitment - 2020",
"description": "Associate files and folders of all candidates registered for recruitment in 2020"
},
"type": "datatemplates"
}
}
{
"data": {
"id": "nrkroc4c5f3259e2a410da17c3915ea990dde-24000000581001",
"type": "datatemplates",
"attributes": {
"created_time_i18": "Sep 7, 6:40 PM",
"name": "Recruitment - 2020",
"modified_by": "15077877",
"description": "Associate files and folders of all candidates registered for recruitment in 2020",
"modified_by_user": "Anna Baker",
"team_id": "nrkroc4c5f3259e2a410da17c3915ea990dde",
"custom_fields_count": 0,
"created_time_in_millisecond": 1631020235366,
"created_by": "15077877",
"created_by_user": "Anna Baker",
"status": true
},
"relationships": {
"customfields": {
"links": {
"self": "https://www.zohoapis.com/workdrive/api/v1/datatemplates/nrkroc4c5f3259e2a410da17c3915ea990dde-24000000581001/relationships/customfields",
"related": "https://www.zohoapis.com/workdrive/api/v1/datatemplates/nrkroc4c5f3259e2a410da17c3915ea990dde-24000000581001/customfields"
}
}
},
"links": {
"self": "https://www.zohoapis.com/workdrive/api/v1/datatemplates/nrkroc4c5f3259e2a410da17c3915ea990dde-24000000581001"
}
}
}
{
"errors": [
{
"id": "R008",
"title": "Unauthorized access"
}
]
}
{
"errors": [
{
"id": "CF036",
"title": "Duplicate dataTemplateName found"
}
]
}
{
"errors": [
{
"id": "CF050",
"title": "Empty or same dataTemplate Name is not allowed"
}
]
}
{
"errors": [
{
"id": "CF052",
"title": "Max template count reached"
}
]
}
{
"errors": [
{
"id": "F000",
"title": "General Exception"
}
]
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.