Publish Document
publish_docMake an AFFiNE document publicly accessible through public sharing. This changes its sharing state; use revoke_doc to disable public access later.
Instructions
Make a document publicly accessible through AFFiNE public sharing. This changes sharing state; use revoke_doc to disable public access later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Public document mode to publish. Omit to let AFFiNE use its 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 | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |