Restore Document
Purpose
To restore the trashed document.
Quick Reference
| Property | Value |
|---|---|
| Method | POST |
| Request URL | https://{zohoapis_domain}/writer/api/v1/documents/{{document_id}}/restore |
| Scopes | ZohoWriter.documentEditor.ALL, ZohoPC.files.ALL, WorkDrive.files.ALL, WorkDrive.organization.ALL, WorkDrive.workspace.ALL |
| Rate Limit | See Writer API throttle limits |
Parameters
Path Parameters
| Parameter | Data Type | Mandatory/Optional | Description |
|---|---|---|---|
| document_id | String | Optional | Specify the unique id for the document to be restored. |
Notes
- For possible errors, refer to error codes.
Sample Request
Copiedcurl -X POST "https://www.zohoapis.com/writer/api/v1/documents/{document_id}/restore" \
-H "Authorization: Zoho-oauthtoken <ACCESS_TOKEN>"Copiedresponse = invokeurl
[
url :"https://www.zohoapis.com/writer/api/v1/documents/{document_id}/restore"
type :POST
connection:"<connection_name>"
];
info response;