← Back
Editing: manage_reusable.json
{ "name": "manage_reusable", "description": "Manage reusable/global-part lifecycle operations through one facade. List reusables, create a blank reusable, convert an existing page section into a reusable, update reusable properties, or delete a reusable. Conversion creates an independent reusable copy; editing it does not update the original page section. Mutations change shared working source only; they never update a live page, and a human must Publish or Update live in the Manual editor. STATUS is the internal nonpublic reusable record status; STATUS: publish does not mean new source is live on visitor pages. Reusable types are header, footer, and section.", "http": { "method": "POST", "path": "/wp-json/uncanny-page-builder/v1/agent/reusable" }, "parameters": [ { "name": "operation", "type": "string", "enum": ["list", "create", "convert", "update", "delete"], "required": true, "in": "body", "description": "Reusable lifecycle operation. Use list, create, convert, update, or delete." }, { "name": "reusable_id", "type": "integer", "required": false, "in": "body", "description": "Existing reusable/global-part post ID for update or delete. Pass an explicit ID from manage_reusable operation=list or the current reusable canvas context.", "inject_from": "current_page_id" }, { "name": "title", "type": "string", "required": false, "in": "body", "description": "Reusable title. Blank falls back to an Untitled reusable title, or the source section name during convert." }, { "name": "reusable_type", "type": "string", "enum": ["header", "footer", "section"], "required": false, "in": "body", "description": "Reusable type filter for list, or reusable type for create, convert, or update. Use header, footer, or section. Defaults to section when omitted for create or convert." }, { "name": "section_id", "type": "integer", "required": false, "in": "body", "description": "Existing section ID for operation=convert." }, { "name": "delete_mode", "type": "string", "enum": ["trash", "delete"], "required": false, "default": "trash", "in": "body", "description": "Delete behavior for operation=delete. Use trash or delete." } ], "output": { "content_type": "text/plain", "description": "Plain-text reusable result with COUNT for list responses, per-item REUSABLE_ID, TITLE, REUSABLE_TYPE, STATUS, EDITOR_URL (the Manual editor URL), optional SOURCE_SECTION_ID, and NEXT STEP guidance. STATUS is the internal nonpublic reusable record status, not proof that changed source is live on visitor pages." }, "auto_approve": false, "group": "write" }
Save File
Cancel