/revisions
GET
/revisions
const url = 'https://api.quantcdn.io/v1/revisions';const options = { method: 'GET', headers: { 'Quant-Customer': 'example', 'Quant-Project': 'example', 'Quant-Token': '<Quant-Token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.quantcdn.io/v1/revisions \ --header 'Quant-Customer: example' \ --header 'Quant-Project: example' \ --header 'Quant-Token: <Quant-Token>'Returns a list of revisions for a given asset
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Quant-Customer
required
string
The customer account name
Quant-Project
required
string
The project machine name
Responses
Section titled “Responses”Okay
Media typeapplication/json
object
revisions
Revision objects, mapped by revision number (string)
object
url
The url of the asset
string
published
Published state of the asset
boolean
published_revision
Published revision number of the asset
integer
transitions
List of transitions
Array<object>
A transition definition (e.g. for scheduled publish)
object
state
The transition state (e.g. ‘published’)
string
date_timestamp
The date from which the transition applies
integer
highest_revision_number
Last revision number
integer
transition_revision
The transition number, if set
integer
Example
{ "transitions": [ { "state": "published" } ]}Content not found
