API reference/Saved sections
Change a saved section
Try itRenames a saved section and/or changes its content (fields you send replace those fields; the result is checked against the type's content_schema). A content change shows in EVERY linked placement's draft at once, on every site — live on each site's next publish.
PATCH
/api/v1/saved-sections/{saved_section_id}Authentication
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 optionalMCP tool: update_saved_section
Parameters
Named placeholders go in the path; the rest in a JSON body.
saved_section_idstringPath · required- The saved section's id.1 to 100 characters
namestringBody · optional- 1 to 60 characters
contentobjectBody · optional- Top-level content fields to replace.
Response
200 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 PATCH 'https://websites.workflowcorp.com/api/v1/saved-sections/SAVED_SECTION_ID' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":{"heading":"Summer hours: open till 10"}}'{
"saved_section_id": "SAVED_SECTION_ID",
"content": {
"heading": "Summer hours: open till 10"
}
}{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"type_label": {
"type": "string"
},
"content": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The section's content; its shape is the type's content_schema (List section types)."
},
"placements": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Linked placements across every site of the account."
},
"sites": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "How many websites show it linked."
},
"saved_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The name of the site it was saved from."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"sites_changed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ids of the sites whose draft changed."
}
},
"required": [
"id",
"name",
"type",
"type_label",
"content",
"placements",
"sites",
"saved_from",
"created_at",
"updated_at",
"sites_changed"
],
"additionalProperties": false
}