Save Cms Draft
PUT
/api/superadmin/cms/{page_id}/draft
const url = 'https://example.com/api/superadmin/cms/example/draft';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"content":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/superadmin/cms/example/draft \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": { "additionalProperty": "example" } }'Save draft content changes without publishing.
Drafts are persisted in cms_draft and do not affect the live
landing page content. The editor auto-saves here; superadmins
must explicitly publish to go live.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” page_id
required
Page Id
string
Request Body required
Section titled “Request Body required ” Media type application/json
CMSDraftSaveRequest
Request model for PUT /api/superadmin/cms/{page_id}/draft.
object
content
required
Content
object
key
additional properties
string
Example generated
{ "content": { "additionalProperty": "example" }}Responses
Section titled “ Responses ”Successful Response
Media type application/json
CMSContentResponse
Response model for GET /api/superadmin/cms/{page_id}.
object
page_id
required
Page Id
string
content
required
Content
object
key
additional properties
CMSContentEntry
Single content entry returned by the metadata endpoint.
object
value
required
Value
string
default_value
required
Default Value
string
is_modified
required
Is Modified
boolean
has_draft
Has Draft
boolean
Example
{ "content": { "additionalProperty": { "has_draft": false } }}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}