Restore Document from Trash
restore_docRestore a document from the AFFiNE trash without altering its content. Use this safe retry action to recover deleted AFFiNE documents by document ID and workspace ID.
Instructions
Restore a document from the AFFiNE trash without changing its content. This is safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| title | No | ||
| status | No | ||
| changed | No | ||
| details | No | ||
| inTrash | No | ||
| causeCode | No | ||
| retryable | No | ||
| trashDate | No | ||
| workspaceId | No | ||
| readBackVerified | No | ||
| recoveryGuidance | No | ||
| previouslyInTrash | No |