Update Document Metadata

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Updates a single metadata field or state attribute of a Zoho Writer document — its name, description, favourite flag, final/draft state, lock state, readiness, or track-changes setting.

Endpoints

OAuth Scope

ZohoWriter.documentEditor.ALLWorkDrive.files.ALLWorkDrive.organization.ALLWorkDrive.workspace.ALLCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request POST \
  --url https://www.zohoapis.com/writer/api/v1/documents/a1b2c3d4e5f6g7h8i9/meta \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --data '{"operations":{"name":"New Document Name","description":"Invoice Q1 2026","favourite":true,"mark_as_final":true,"lock":true,"state":"mark_as_complete","track_changes":"enable"}}'

Path Parameters

document_idstring(Required)

The unique identifier of the Zoho Writer document.

Request Body

application/json
operationsJSON Object(Required)

An object containing exactly one metadata field to update.

Hide Sub-Attributes
namestring(Optional)

The new name to assign to the document.

Maximum Length :255255Copied!
descriptionstring(Optional)

The new description to set for the document.

Maximum Length :200200Copied!
favouriteboolean(Optional)

When true, marks the document as a favourite. When false, removes the document from favourites.

mark_as_finalboolean(Optional)

When true, marks the document as final. When false, reverts the document from final back to an editable state.

lockboolean(Optional)

When true, locks the document. When false, unlocks the document.

statestring(Optional)

Marks the document as ready, moving it out of the draft state and making it accessible to everyone in the team folder.

Allowed Values :
Show Values
mark_as_completeCopied!
Copied!Copy all as JSON Array
track_changesstring(Optional)

Controls whether track changes is enabled for the document. If the document owner or co-owner enables track changes, the feature is enabled for all users accessing that document. If any other collaborator enables track changes while viewing the document, the feature applies only to that collaborator and not to other users accessing the same document.

Allowed Values :
Show Values
enableCopied!
disableCopied!
Copied!Copy all as JSON Array

Body Parameters

Copied!
  {
    "operations": {
      "name": "New Document Name",
      "description": "Invoice Q1 2026",
      "favourite": true,
      "mark_as_final": true,
      "lock": true,
      "state": "mark_as_complete",
      "track_changes": "enable"
    }
  }
                
Show full

Response Example

Description updated

Description updated

Favourite made/removed

Marked/reverted as final

Document locked (checked out)

Document unlocked (checked in)

Document renamed

Marked as ready

Track changes enabled/disabled

200
Copied!
  {
    "result": "success",
    "message": "Document description has been updated successfully.",
    "description": "Invoice Q1 2026",
    "modified_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "The document has been added to your favorites.",
    "is_favourite": true,
    "modified_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "The document has been marked as final.",
    "final_info": {
      "zuid": "1308724",
      "status": true,
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "Document lock operation has been completed successfully.",
    "locked_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "The document has been unlocked successfully.",
    "unlocked_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "Document has been renamed successfully.",
    "name": "New Document Name",
    "modified_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "message": "Document marked as complete successfully",
    "state": "active",
    "modified_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
  {
    "result": "success",
    "message": "The trackchanges has been enabled in the document.",
    "modified_by": {
      "email_id": "zylker@zylker.com",
      "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1308724&fs=thumb",
      "user_id": "1308724",
      "timezone": "Asia/Kolkata",
      "language": "en",
      "display_name": "Zylker"
    }
  }
                
Show full