Retrieve a chart version

Each chart has a published version and an optional draft version. Those versions contain the actual contents of the chart: categories, rows, seats etc. The endpoints below allow you to fetch exactly that data.

To retrieve properties that are shared between the draft and published version, call the endpoint to retrieve a chart.

Retrieve the published version of a chart#

GET https://api-{region}.seatsio.net/charts/{chartKey}/version/published
curl https://api-{region}.seatsio.net/charts/aChartKey/version/published \
-u aSecretKey:
{
"name": "A demo chart",
"categories": {
"list": [
{ label: "Upper level", "key": 54, "color": "#cccccc", "accessible": false },
{ label: "Lower level", "key": 67, "color": "#eeeeff", "accessible": true }
]
},
"subChart": {
"rows": [ ... ]
}
...
}

Retrieve the draft version of a chart#

GET https://api-{region}.seatsio.net/charts/{chartKey}/version/draft
curl https://api-{region}.seatsio.net/charts/aChartKey/version/draft \
-u aSecretKey:
{
"name": "A draft chart",
"categories": {
"list": [
{ label: "Upper level", "key": 54, "color": "#cccccc", "accessible": false },
{ label: "Lower level", "key": 67, "color": "#eeeeff", "accessible": true }
]
},
"subChart": {
"rows": [ ... ]
}
...
}

Error 404 (Not Found) is returned when the chart does not have a draft version.