SpecifyDocs

project_page_update

tools/call

Rename a Docs page, move it, or replace its text. Move with parentId (null for the project root) and position (0 is first; left out, the page goes last). Replacing the text needs bodyBase, the document epoch and version from project_page_get: if someone changed the text since, the call answers DOCUMENT_CONFLICT and changes nothing, so read the page again and retry.

Scopes

read:projectswrite:projects

Replacing the text also takes the document checks of documents_execute on the page's project.

Inputs

pageIdstringRequired
Page ID (id from project_page_list or project_page_create)
titlestring
New title, at most 180 characters
parentIdstring | null
Page to move it under, in the same project, or null for the project root
positioninteger
Place among its new siblings
bodystring
The page text, plain: each line becomes a paragraph. At most 100,000 characters
bodyBaseobject
document.epoch and document.version from project_page_get
idempotencyKeystringRequired
Unique retry key

Returns

The page as it is now and its document version. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The key has read:projects.