ReferenceSitesSitesSiteidDraft
Save the site's design (theme, header, menu, footer)
Compare-and-set on `expectedRevision`; a stale revision is 409 SITE_DRAFT_CONFLICT.
Loading the API reference…
Compare-and-set on expectedRevision; a stale revision is 409 SITE_DRAFT_CONFLICT.
A practice API key or an OAuth access token, both presented as Authorization: Bearer <token>. The token itself names the practice, so no organization header is needed.
In: header
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "document": { "theme": { "preset": "classic", "colors": { "primary": "string", "accent": "string", "ink": "string", "surface": "string" }, "radius": "square", "buttons": "solid" }, "logo": { "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "alt": "string" }, "header": { "menu": [ { "label": "string", "link": { "kind": "page", "pageId": "347b9bf8-fe00-46f6-b8ca-1e06b3bd5809" } } ], "cta": { "label": "string", "link": { "kind": "page", "pageId": "347b9bf8-fe00-46f6-b8ca-1e06b3bd5809" } }, "showPhone": true }, "footer": { "text": "string", "links": [ { "label": "string", "link": { "kind": "page", "pageId": "347b9bf8-fe00-46f6-b8ca-1e06b3bd5809" } } ], "showLocations": true }, "seo": { "titleSuffix": "string", "description": "string", "ogImage": { "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "alt": "string" } }, "cookieBannerText": "string", "notFoundPageId": "52c13669-dbd7-4c96-a853-a10653ca1b38" } }'{ "draftRevision": 0, "savedAt": "2019-08-24T14:15:22Z"}0 <= value <= 9007199254740991