Skip to content

restorePublicationAsDraft

POST
/api/v1/content-history/{type}/{id}/publications/{publicationId}/restore-draft
curl --request POST \
--url https://example.com/api/v1/content-history/playlist/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/publications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore-draft

Restore publication as draft. Requires an authenticated dashboard user.

type
required
string
Allowed values: playlist layout campaign
id
required
string format: uuid
publicationId
required
string format: uuid
X-CSRF-Token
string

Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.

Historical snapshot copied to the working draft; live state is unchanged

Media typeapplication/json
object
data
required

Working draft after copying a historical snapshot into it. The document is the native playlist, Layout, or campaign draft, so its keys differ by content type.

object
workingRevision
required
integer format: int64
>= 1
publishedRevision
required
integer | null format: int64
>= 1
publishedRevisionId
required
string | null format: uuid
document
required

Native draft document for the content type.

object
key
additional properties
any
digest
required
string
Examplegenerated
{
"data": {
"workingRevision": 1,
"publishedRevision": 1,
"publishedRevisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"document": {},
"digest": "example"
}
}

Historical snapshot no longer validates