update_rendering

mutationSince v1.0

Change a rendering's name, description, or document. The new document replaces the old one entirely rather than being merged into it — send the whole template, not just the part you changed. Applied immediately.

Preview the result with preview_rendering afterwards: an edit that breaks a block shows up as missing content on the page, not as an error.

Parameters

NameTypeRequiredDefaultDescription
set_nameStringNew name for the rendering.
renderingStringThe rendering to change, by ID or name.
set_documentStringReplacement page template. It replaces the existing document completely, so send the whole thing rather than just the part you changed. Same format as create_rendering's document — see "Writing Rendering Documents".
localeStringWrite the new name and description as this language's translation (for example 'de') rather than to the base text.
set_descriptionStringNew author note for the rendering.

Example Request

{"rendering": "Service page", "set_document": "# {{ subject.label }}\n\n:::view{ source=roles heading=\"Roles involved\" }"}

Example Response

{"success": true, "operation_count": 1, "versions": [93]}

This content was written collaboratively with AI.