Create Zoho format files
This API helps to create Zoho format files, i.e., documents (Zoho Writer), spreadsheets (Zoho Show), and presentations (Zoho Show).
Note:
Only members with Admin, Organizer, and Editor roles can create a file in a team folder.
Endpoints
post https://www.zohoapis.com/workdrive/api/v1/files
Copy full URL
OAuth Scope
WorkDrive.files.CREATECopied!
curl --request POST \
--url https://www.zohoapis.com/workdrive/api/v1/files \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/vnd.api+json' \
--data '{"data":{"attributes":{"service_type":"zohosheet","parent_id":"0nk78318a1771da934f22939e4a00d8aab225","name":"ExpensesSheet"},"type":"files"}}'Request Body
application/vnd.api+jsondataJSON Object(Required)
Hide Sub-Attributes
attributesJSON Object(Required)
Hide Sub-Attributes
service_typestring(Required)
Allowed service types:
parent_idstring(Required)
The unique ID of the folder/team folder, which will be listed under.
namestring(Required)
The name of the new native document/sheet/presentation file.
typestring(Required)
The JSON:API resource type. Always "files".
Allowed Values :
Show Values ▾
filesCopied!
Copy all as JSON Array
{
"data": {
"attributes": {
"service_type": "zohosheet",
"parent_id": "0nk78318a1771da934f22939e4a00d8aab225",
"name": "ExpensesSheet"
},
"type": "files"
}
}
{
"data": {
"id": "cjrrr2b266c68eedd4e6b92e067af9dcc581a",
"type": "files",
"attributes": {
"modified_by_zuid": "747938014",
"is_locked": false,
"conv_engine_type": 0,
"is_fillable_resource": false,
"is_published": false,
"destination_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"storage_info": {
"size": "0 bytes",
"storage_used": "0 bytes",
"files_count": 0,
"folders_count": 0,
"size_in_bytes": 0,
"storage_used_in_bytes": 0
},
"type": "zohosheet",
"created_time_i18": "Apr 13, 10:39 AM",
"modified_time_in_millisecond": 1618290568486,
"opened_time": "Apr 13, 10:39 AM",
"status_change_time": "Apr 13, 10:39 AM",
"download_url": "https://download-accl.zoho.com/v1/workdrive/download/cjrrr2b266c68eedd4e6b92e067af9dcc581a",
"comment_badge_count": 0,
"is_app_associated": false,
"created_time": "Apr 13, 10:39 AM",
"lock_status": 2,
"is_folder": false,
"resource_type": 2101,
"is_email_in_upload": false,
"display_attr_name": "ExpensesSheet",
"user_access_time": "Apr 13, 10:39 AM",
"created_by": "Zylker Creation",
"display_html_name": "ExpensesSheet",
"labels": [],
"user_access_time_i18": "Apr 13, 10:39 AM",
"org_id": "ly9zmae16b43c258f458a9a57ac02c4f8d763",
"parent_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"name": "ExpensesSheet",
"status_change_time_in_millisecond": 1618290568486,
"permalink": "https://sheet.zoho.com/sheet/open/cjrrr2b266c68eedd4e6b92e067af9dcc581a",
"favorite": false,
"new_badge_count": 0,
"status": 0,
"modified_time_i18": "Apr 13, 10:39 AM",
"opened_time_i18": "Apr 13, 10:39 AM",
"extn": "zsheet",
"user_access_time_in_millis": 1618290568486,
"shortcut_link": "",
"status_change_time_i18": "Apr 13, 10:39 AM",
"description": "",
"uploaded_time_in_millisecond": 1618290568489,
"thumbnail_url": "https://previewengine-accl.zoho.com/thumbnail/WD/cjrrr2b266c68eedd4e6b92e067af9dcc581a",
"title": "",
"modified_time": "Apr 13, 10:39 AM",
"library_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"icon_class": "sheet",
"created_time_in_millisecond": 1618290568486,
"owner": "747937818",
"creator": "747938014",
"capabilities": {
"can_read": true,
"can_share": true,
"can_remove_share": false,
"can_delete": true,
"can_edit": true,
"can_upload_files": false,
"can_trash": false,
"can_rename": true,
"can_restore": false,
"can_copy": false,
"can_move": false,
"can_zip": true,
"can_download": true,
"can_emailattach": true,
"can_publish": true,
"can_create_task": true,
"can_share_support": true,
"can_label": true,
"can_checkout": false,
"can_cancel_checkout": false,
"can_discard_checkout": false,
"can_checkin": false,
"can_read_comment": true,
"can_create_comment": true,
"can_trash_files": false
},
"uploaded_time_i18": "Apr 13, 10:39 AM",
"is_external_upload": false,
"watch_preference": {
"watch": false,
"notifyemail": false,
"notifybell": false
},
"opened_time_in_millisecond": 1618290568486,
"edit_badge_count": 0,
"share_data": [],
"data_template_id_to_mandate": "",
"uploaded_time": "Apr 13, 10:39 AM",
"has_folders": false,
"service_type": "zohosheet",
"recent_action": "last_modified_time",
"display_url_name": "ExpensesSheet",
"is_unread": false,
"modified_by": "Zylker Creation",
"embed_props": {}
},
"relationships": {
"folders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/folders",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/folders"
}
},
"comments": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/comments",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/comments"
}
},
"previewinfo": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/previewinfo",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/previewinfo"
}
},
"unzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/unzip",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/unzip"
}
},
"publiclink": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/publiclink",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/publiclink"
}
},
"resourceproperty": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/resourceproperty",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/resourceproperty"
}
},
"parentfolders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/parentfolders",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/parentfolders"
}
},
"shortcut": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/shortcut",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/shortcut"
}
},
"importfile": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/importfile",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/importfile"
}
},
"versions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/versions",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/versions"
}
},
"supportshare": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/supportshare",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/supportshare"
}
},
"permissions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/permissions",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/permissions"
}
},
"timeline": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/timeline",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/timeline"
}
},
"files": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/files",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/files"
}
},
"saveastemplate": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/saveastemplate",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/saveastemplate"
}
},
"links": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/links",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/links"
}
},
"copy": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/copy",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/copy"
}
},
"previewzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/previewzip",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/previewzip"
}
},
"tasks": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/tasks",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/tasks"
}
},
"breadcrumbs": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/breadcrumbs",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/breadcrumbs"
}
},
"entity": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/entity",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/entity"
}
},
"custommetadata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/custommetadata",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/custommetadata"
}
},
"statistics": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/statistics",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/statistics"
}
},
"appdata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/relationships/appdata",
"related": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a/appdata"
}
}
},
"links": {
"self": "https://www.zohoapis.com/workdrive/files/cjrrr2b266c68eedd4e6b92e067af9dcc581a"
}
}
}
{
"errors": [
{
"id": "R002",
"title": "Resource with same name exists"
}
]
}
{
"errors": [
{
"id": "R023",
"title": "Invalid name"
}
]
}
{
"errors": [
{
"id": "F7003",
"title": "Invalid OAuth token"
}
]
}
{
"errors": [
{
"id": "R008",
"title": "Insufficient permissions"
}
]
}
{
"errors": [
{
"id": "F7004",
"title": "Invalid OAuth scope"
}
]
}
{
"errors": [
{
"id": "R801",
"title": "Resource with same name exists"
}
]
}
{
"errors": [
{
"id": "R602",
"title": "Invalid parent Id"
}
]
}
{
"errors": [
{
"id": "F000",
"title": "General exception"
}
]
}
{
"errors": [
{
"id": "F200",
"title": "Mandatory input fields missing"
}
]
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.