Move File/Folder
This API moves a file or folder to a new destination folder in WorkDrive.
Endpoints
OAuth Scope
WorkDrive.files.UPDATECopied!
curl --request PATCH \
--url https://www.zohoapis.com/workdrive/api/v1/files/{resource_id} \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/vnd.api+json' \
--data '{"data":{"attributes":{"parent_id":"0nk78318a1771da934f22939e4a00d8aab225"},"type":"files"}}'Path Parameters
resource_idstring(Required)
The unique ID of the file.
Request Body
application/vnd.api+jsondataJSON Object(Required)
Hide Sub-Attributes
attributesJSON Object(Required)
Hide Sub-Attributes
parent_idstring(Required)
The unique ID of the destination folder.
typestring(Required)
The JSON:API resource type. Always "files".
Allowed Values :
Show Values ▾
filesCopied!
Copy all as JSON Array
{
"data": {
"attributes": {
"parent_id": "0nk78318a1771da934f22939e4a00d8aab225"
},
"type": "files"
}
}
{
"data": [
{
"id": "ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2",
"type": "files",
"attributes": {
"modified_by_zuid": "747938014",
"is_locked": false,
"conv_engine_type": 1,
"is_fillable_resource": false,
"is_published": false,
"collab_id": "2243193151340634610",
"destination_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"storage_info": {
"size": "48.0 KB",
"storage_used": "48.0 KB",
"files_count": 0,
"folders_count": 0,
"size_in_bytes": 50081,
"storage_used_in_bytes": 50081
},
"type": "image",
"created_time_i18": "Apr 12, 9:45 PM",
"modified_time_in_millisecond": 1618295295764,
"opened_time": "Apr 12, 9:45 PM",
"status_change_time": "Apr 13, 11:58 AM",
"download_url": "https://download-accl.zoho.com/v1/workdrive/download/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2",
"comment_badge_count": 0,
"is_app_associated": false,
"created_time": "Apr 12, 9:45 PM",
"lock_status": 2,
"is_folder": false,
"resource_type": 2501,
"is_email_in_upload": false,
"display_attr_name": "User screenshot.png",
"user_access_time": "Apr 13, 11:58 AM",
"created_by": "Zylker Creation",
"display_html_name": "User screenshot.png",
"labels": [],
"user_access_time_i18": "Apr 13, 11:58 AM",
"org_id": "ly9zmae16b43c258f458a9a57ac02c4f8d763",
"parent_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"name": "User screenshot.png",
"status_change_time_in_millisecond": 1618295295764,
"permalink": "https://www.zohoapis.com/workdrive/file/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2",
"favorite": false,
"new_badge_count": 0,
"status": 1,
"modified_time_i18": "Apr 13, 11:58 AM",
"opened_time_i18": "Apr 12, 9:45 PM",
"extn": "png",
"user_access_time_in_millis": 1618295295764,
"shortcut_link": "",
"status_change_time_i18": "Apr 13, 11:58 AM",
"description": "",
"uploaded_time_in_millisecond": 1618244132645,
"thumbnail_url": "https://previewengine-accl.zoho.com/thumbnail/WD/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2",
"title": "",
"modified_time": "Apr 13, 11:58 AM",
"library_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
"icon_class": "img",
"created_time_in_millisecond": 1618244132643,
"owner": "747937818",
"creator": "747938014",
"capabilities": {
"can_read": true,
"can_share": true,
"can_remove_share": false,
"can_delete": false,
"can_edit": true,
"can_upload_files": true,
"can_trash": true,
"can_rename": true,
"can_restore": false,
"can_copy": true,
"can_move": true,
"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": true,
"can_cancel_checkout": false,
"can_discard_checkout": false,
"can_checkin": false,
"can_read_comment": true,
"can_create_comment": true,
"can_trash_files": true
},
"uploaded_time_i18": "Apr 12, 9:45 PM",
"is_external_upload": false,
"watch_preference": {
"watch": false,
"notifyemail": false,
"notifybell": false
},
"opened_time_in_millisecond": 1618244132643,
"edit_badge_count": 0,
"share_data": [],
"data_template_id_to_mandate": "",
"uploaded_time": "Apr 12, 9:45 PM",
"has_folders": false,
"service_type": "upload",
"recent_action": "last_modified_time",
"display_url_name": "User+screenshot.png",
"is_unread": false,
"modified_by": "Zylker Creation",
"embed_props": {}
},
"relationships": {
"folders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/folders",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/folders"
}
},
"comments": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/comments",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/comments"
}
},
"previewinfo": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/previewinfo",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/previewinfo"
}
},
"unzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/unzip",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/unzip"
}
},
"publiclink": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/publiclink",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/publiclink"
}
},
"resourceproperty": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/resourceproperty",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/resourceproperty"
}
},
"parentfolders": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/parentfolders",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/parentfolders"
}
},
"shortcut": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/shortcut",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/shortcut"
}
},
"importfile": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/importfile",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/importfile"
}
},
"versions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/versions",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/versions"
}
},
"supportshare": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/supportshare",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/supportshare"
}
},
"permissions": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/permissions",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/permissions"
}
},
"timeline": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/timeline",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/timeline"
}
},
"files": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/files",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/files"
}
},
"saveastemplate": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/saveastemplate",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/saveastemplate"
}
},
"links": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/links",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/links"
}
},
"copy": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/copy",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/copy"
}
},
"previewzip": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/previewzip",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/previewzip"
}
},
"tasks": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/tasks",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/tasks"
}
},
"breadcrumbs": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/breadcrumbs",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/breadcrumbs"
}
},
"entity": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/entity",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/entity"
}
},
"custommetadata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/custommetadata",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/custommetadata"
}
},
"statistics": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/statistics",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/statistics"
}
},
"appdata": {
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/relationships/appdata",
"related": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2/appdata"
}
}
},
"links": {
"self": "https://www.zohoapis.com/workdrive/files/ly9zm1d1ee3b833c1438a9232ad6ac77bc8f2"
}
}
],
"meta": {
"search_result_count": 0,
"action_id": "2774428000000002046"
}
}
{
"errors": [
{
"id": "R1304",
"title": "The resourceId must be a writer file type"
}
]
}
{
"errors": [
{
"id": "R105",
"title": "Error while restoring files"
}
]
}
{
"errors": [
{
"id": "R004",
"title": "Invalid resourceId"
}
]
}
{
"errors": [
{
"id": "R002",
"title": "Folder with same name exists in the workspace. Please use a different name"
}
]
}
{
"errors": [
{
"id": "R101",
"title": "File trash in progress. Try Later"
}
]
}
{
"errors": [
{
"id": "R102",
"title": "Files restore in progress. Try later"
}
]
}
{
"errors": [
{
"id": "R023",
"title": "Invalid name"
}
]
}
{
"errors": [
{
"id": "R507",
"title": "Copy action processing for this resource. So cannot copy or move this resource."
}
]
}
{
"errors": [
{
"id": "R008",
"title": "Unauthorized access"
}
]
}
{
"errors": [
{
"id": "F7003",
"title": "Invalid OAuth token"
}
]
}
{
"errors": [
{
"id": "A014",
"title": "API not enabled for this file type"
}
]
}
{
"errors": [
{
"id": "R508",
"title": "Move out of the defined scope is not allowed for the user."
}
]
}
{
"errors": [
{
"id": "R008",
"title": "Insufficient permissions"
}
]
}
{
"errors": [
{
"id": "T031",
"title": "Team is integrated with other app or bundle"
}
]
}
{
"errors": [
{
"id": "R1300",
"title": "Permanent Delete not possible as Data on Hold"
}
]
}
{
"errors": [
{
"id": "R004",
"title": "Invalid resourceId passed"
}
]
}
{
"errors": [
{
"id": "T001",
"title": "No Such Team"
}
]
}
{
"errors": [
{
"id": "R102",
"title": "Files restore in progress. Try later"
}
]
}
{
"errors": [
{
"id": "R1303",
"title": "The Index layout file is already mapped to the parent"
}
]
}
{
"errors": [
{
"id": "R961",
"title": "Marking file as final action failed"
}
]
}
{
"errors": [
{
"id": "R271",
"title": "Trash action processing for this resource. So, you cannot restore this resource."
}
]
}
{
"errors": [
{
"id": "R402",
"title": "Document is not locked yet"
}
]
}
{
"errors": [
{
"id": "R403",
"title": "This resource cannot be locked"
}
]
}
{
"errors": [
{
"id": "R103",
"title": "Error while trash files"
}
]
}
{
"errors": [
{
"id": "R400",
"title": "File has been locked already"
}
]
}
{
"errors": [
{
"id": "R104",
"title": "Error while delete files"
}
]
}
{
"errors": [
{
"id": "R401",
"title": "You are not authorized to unlock the file"
}
]
}
{
"errors": [
{
"id": "F283",
"title": "Folder is getting copied and cannot trash the resource"
}
]
}
{
"errors": [
{
"id": "V006",
"title": "Can't checkout subversion"
}
]
}
{
"errors": [
{
"id": "R509",
"title": "Source and destination cannot be the same while move."
}
]
}
{
"errors": [
{
"id": "F000",
"title": "General exception"
}
]
}
{
"errors": [
{
"id": "F221",
"title": "Resource has been Trashed already"
}
]
}
{
"errors": [
{
"id": "F268",
"title": "Copy action processing for this resource. So, you cannot trash this resource."
}
]
}
{
"errors": [
{
"id": "R012",
"title": "Resource is not in active status to process this action"
}
]
}
{
"errors": [
{
"id": "Z010",
"title": "Myfolder Storage limit exceeds"
}
]
}
{
"errors": [
{
"id": "Z011",
"title": "Storage limit exceeds"
}
]
}
{
"errors": [
{
"id": "R514",
"title": "Moving resource across space not allowed."
}
]
}
{
"errors": [
{
"id": "R217",
"title": "Error while add favorite"
}
]
}
{
"errors": [
{
"id": "R515",
"title": "My Space storage limit exceeded, cannot move resource into my folder."
}
]
}
{
"errors": [
{
"id": "R218",
"title": "Error while remove favorite"
}
]
}
{
"errors": [
{
"id": "R513",
"title": "Move not Allowed As Data on Hold."
}
]
}
{
"errors": [
{
"id": "R510",
"title": "User does not have permission to move this resource."
}
]
}
{
"errors": [
{
"id": "R213",
"title": "Invalid operation"
}
]
}
{
"errors": [
{
"id": "F210",
"title": "Invalid move operation destination or source is of invalid resource type."
}
]
}
{
"errors": [
{
"id": "F211",
"title": "Move resource is restricted for Zia Hub."
}
]
}
{
"errors": [
{
"id": "F277",
"title": "Trying to move a hidden resource type."
}
]
}
{
"errors": [
{
"id": "R516",
"title": "Move action failed as storage limit exceeded in the destination Team Folder."
}
]
}
{
"errors": [
{
"id": "F213",
"title": "Exception while restore resource."
}
]
}
{
"errors": [
{
"id": "F237",
"title": "Resource can't be moved into same resource or its sub resource."
}
]
}
{
"errors": [
{
"id": "F415",
"title": "Trash operation not allowed."
}
]
}
{
"errors": [
{
"id": "V005",
"title": "Invalid version info"
}
]
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.