Rename a page draft
rename_page_draftRename a page draft (the label the user sees in the editor's drafts bar). Changes nothing else. page_slug is optional — it is worked out from the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new name, 1–60 characters. | |
| site_id | Yes | The site the draft belongs to | |
| page_slug | No | The live page the draft belongs to. Optional — worked out from the draft when omitted. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| draft_slug | Yes | The draft's slug, from create_page_draft or list_page_drafts (e.g. "/about--draft-7f2a"). | |
| variation_id | No | Design the draft belongs to, from list_variations. Defaults to the active design. |