API reference/Saved sections
Remove a saved section
Try itRemoves a saved section from your library. Every linked placement stays on its page with its words, as an ordinary section.
DELETE
/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:writeDeletesIdempotency-Key optionalMCP tool: delete_saved_section
Parameters
Named placeholders go in the path; the rest in the query string.
saved_section_idstringPath · required- The saved section's id.1 to 100 characters
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 DELETE 'https://websites.workflowcorp.com/api/v1/saved-sections/SAVED_SECTION_ID' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"{
"saved_section_id": "SAVED_SECTION_ID"
}{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"deleted": {
"type": "boolean",
"const": true
},
"placements_kept": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id",
"deleted",
"placements_kept"
],
"additionalProperties": false
}