Save a site draft
Replace the private saved draft with a complete Benjiads site document using the site builder's structural validation. Get the existing document with get_site before editing and preserve unrelated content. Does not publish the draft.
Replace the private saved draft with a complete Benjiads site document using the site builder's structural validation. Get the existing document with get_site before editing and preserve unrelated content. Does not publish the draft.
Create a scoped key in Benjiads → Integrations. Sent only in Authorization.
In: header
Header Parameters
8–80 letters, digits, underscores or hyphens. Reuse the same key and arguments for retries. Completed mutations replay for at least 90 days; a pending operation returns 409 and must be reconciled before using a new key.
^[A-Za-z0-9_-]+$8 <= length <= 80Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/site/draft" \ -H "Idempotency-Key: stringst" \ -H "Content-Type: application/json" \ -d '{ "doc": { "property1": null, "property2": null } }'{ "site": { "id": "string", "slug": "string", "displayName": "string", "status": "string", "tagline": "string", "bio": "string", "photoUrl": "string", "phonePublic": "string", "theme": "string", "accentColor": "string", "brandWordmarkUrl": "string", "brandWordmarkWhiteUrl": "string", "locations": null, "links": null, "socials": null, "siteDoc": null, "siteDraft": null }}Update site settings PATCH
Update business details, appearance, service areas or publication status. displayName renames the business (the owner's own words, never invented); before the site is first published its address follows the new name, a live site keeps its address.
Publish the saved site draft POST
Replace the website document with the saved draft, apply its design settings and clear the draft. Review and authorize this replacement first. Preserves the existing LIVE or DRAFT status: changes are public only if the site is already LIVE. Refused with not_publishable (422, blockers listed) while the page still has example reviews or placeholder words: ask the owner for the real review (their customer's words and name) or whether to remove the block, never invent one.