API reference/Saved sections
Place a saved section on a page
Try itAdds a saved section to a draft page — linked (the default: it shows the saved section, and a change to either changes every place) or as a copy to change on this page only. Goes live with the next publish.
POST
/api/v1/sites/{site_id}/pages/{page_id}/saved-sectionsAuthentication
An API key as Authorization: Bearer or x-api-key. It needs the sites:write scope — edit draft pages and sections.
sites:writeChanges the draft or a recordIdempotency-Key requiredMCP tool: place_saved_section
Parameters
Named placeholders go in the path; the rest in a JSON body.
site_idstringPath · required- The site's id.1 to 100 characters
page_idstringPath · required- The page's id.1 to 100 characters
saved_section_idstringBody · required- The saved section's id.1 to 100 characters
linkedbooleanBody · optional- false = a copy that is this page's own.Default
true positionintegerBody · optional- 0-based place on the page. Omitted = last.0 to 200
Response
201 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).
curl -X POST 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/pages/PAGE_ID/saved-sections' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"saved_section_id":"SAVED_SECTION_ID","linked":true,"position":1}'{
"site_id": "SITE_ID",
"page_id": "PAGE_ID",
"saved_section_id": "SAVED_SECTION_ID",
"linked": true,
"position": 1
}{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"page_id": {
"type": "string"
},
"type": {
"type": "string"
},
"type_label": {
"type": "string"
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"hidden": {
"type": "boolean"
},
"content": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The section's content; its shape is the type's content_schema (List section types)."
},
"is_sample": {
"type": "boolean"
},
"saved_section_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Set when this is a LINKED placement of a saved section (Saved sections): its content is the saved section's."
}
},
"required": [
"id",
"page_id",
"type",
"type_label",
"position",
"hidden",
"content",
"is_sample",
"saved_section_id"
],
"additionalProperties": false
}