curl --request POST \
--url 'https://api.example.com/api/admin/sites/{id}/config/publish' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"version": 1,
"config": {},
"publishedAt": "2026-08-31T14:22:05Z"
}
Publish the draft
400 no_draft when nothing is saved.
POST
/
api
/
admin
/
sites
/
{id}
/
config
/
publish
curl --request POST \
--url 'https://api.example.com/api/admin/sites/{id}/config/publish' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"version": 1,
"config": {},
"publishedAt": "2026-08-31T14:22:05Z"
}
400 no_draft when nothing is saved.
Path parameters
string
required
Site id
Response
object
integer
required
object
required
The site’s widget settings — free-form, whatever the editor saved
string (date-time)
null until publishedStatus codes
| Code | Meaning |
|---|---|
200 | The published config |
400 | Error |
401 | Error |
404 | Error |
curl --request POST \
--url 'https://api.example.com/api/admin/sites/{id}/config/publish' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"version": 1,
"config": {},
"publishedAt": "2026-08-31T14:22:05Z"
}
Last modified on August 31, 2026