Update Document Title
update_doc_titleUpdate a document's title in AFFiNE, synchronizing the sidebar entry and the page's internal block title.
Instructions
Rename a document — updates both the sidebar title (workspace metadata) and the doc's internal page block title.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | The doc to rename. | |
| title | Yes | New title. | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kind | Yes | ||
| docId | Yes | ||
| title | Yes | ||
| updated | Yes | ||
| workspaceId | Yes |