restorePublicationAsDraft
POST
/api/v1/content-history/{type}/{id}/publications/{publicationId}/restore-draft
const url = 'https://example.com/api/v1/content-history/playlist/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/publications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore-draft';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/content-history/playlist/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/publications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore-draftRestore publication as draft. Requires an authenticated dashboard user.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”type
required
string
id
required
string format: uuid
publicationId
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-CSRF-Token
string
Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Responses
Section titled “ Responses ”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
publishedRevision
required
integer | null format: int64
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