Move Document to Trash
trash_docMoves a document to AFFiNE trash without deleting its content, so it can be restored later and retried safely.
Instructions
Move a document to the AFFiNE trash without deleting its content. This is recoverable with restore_doc and 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 |