Skip to content

Publish Cms Drafts

POST
/api/superadmin/cms/{page_id}/publish
curl --request POST \
--url https://example.com/api/superadmin/cms/example/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "content_keys": [ "example" ] }'

Promote drafts to live content.

If content_keys is omitted, all drafts for the page are published. Otherwise, only the specified keys are promoted.

page_id
required
Page Id
string
Media type application/json
CMSPublishRequest

Request model for POST /api/superadmin/cms/{page_id}/publish.

object
content_keys
Any of:
Array<string>
Example generated
{
"content_keys": [
"example"
]
}

Successful Response

Media type application/json
CMSPublishResponse

Response model for POST /api/superadmin/cms/{page_id}/publish.

object
page_id
required
Page Id
string
published
required
Published
integer
keys
required
Keys
Array<string>
Example generated
{
"page_id": "example",
"published": 1,
"keys": [
"example"
]
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
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": {}
}
]
}