Publish Document
publish_docMake any AFFiNE document publicly accessible by enabling its public sharing state. Optionally specify Page or Edgeless mode for the published view.
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. |