List all charts
Returns a paginated list of charts you’ve previously created in a workspace. The charts are returned in reverse chronological order: the most recently created charts will appear first in the list.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
GET https://api-{region}.seatsio.net/charts
GET https://api-{region}.seatsio.net/charts?filter=london
GET https://api-{region}.seatsio.net/charts?tag=WestEnd
GET https://api-{region}.seatsio.net/charts?expand=events&expand=validation&expand=venueType&expand=zones
More info: https://docs.seats.io/docs/api-pagination
$seatsioClient->charts->listFirstPage(chartListParams?, pageSize?)
$seatsioClient->charts->listPageAfter(afterId, chartListParams?, pageSize?)
$seatsioClient->charts->listPageBefore(beforeId, chartListParams?, pageSize?)
$seatsioClient->charts->listAll(chartListParams?);
/*
Some examples:
https://github.com/seatsio/seatsio-php/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-php/blob/master/README.md#listing-all-charts
*/
await client.Charts.ListFirstPageAsync(filter?, tag?, expandEvents?, expandValidation?, expandVenueType?, expandZones?, pageSize?)
await client.Charts.ListPageAfterAsync(afterIdfilter?, tag?, expandEvents?, expandValidation?, expandVenueType?, expandZones?, pageSize?)
await client.Charts.ListPageBeforeAsync(beforeIdfilter?, tag?, expandEvents?, expandValidation?, expandVenueType?, expandZones?, pageSize?)
client.Charts.ListAllAsync(filter?, tag?, expandEvents?, expandValidation?, expandVenueType? expandZones?,);
/*
Some examples:
https://github.com/seatsio/seatsio-dotnet/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-dotnet/blob/master/README.md#listing-all-charts
*/
client.charts.listFirstPage(chartListParams?, pageSize?)
client.charts.listPageAfter(afterId, chartListParams?, pageSize?)
client.charts.listPageBefore(beforeId, chartListParams?, pageSize?)
client.charts.listAll(chartListParams?);
/*
Some examples:
https://github.com/seatsio/seatsio-java/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-java/blob/master/README.md#listing-all-charts
*/
client.charts.list_first_page(page_size?, chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?)
client.charts.list_page_after(after_id, page_size?, chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?)
client.charts.list_page_before(before_id, page_size?, chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?)
client.charts.list(page_size?, chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?)
"""
Some examples:
https://github.com/seatsio/seatsio-python/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-python/blob/master/README.md#listing-all-charts
"""
client.charts.list(chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?).first_page(page_size?)
client.charts.list(chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?).page_after(after_id, page_size?)
client.charts.list(chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?).page_before(before_id, page_size?)
client.charts.list(chart_filter?, tag?, expand_events?, expand_validation?, expand_venue_type?, expand_zones?)
# Some examples:
# https://github.com/seatsio/seatsio-ruby/blob/master/README.md#listing-charts-page-by-page
# https://github.com/seatsio/seatsio-ruby/blob/master/README.md#listing-all-charts
client.charts.listFirstPage(chartListParams?, pageSize?)
client.charts.listPageAfter(afterId, chartListParams?, pageSize?)
client.charts.listPageBefore(beforeId, chartListParams?, pageSize?)
client.charts.listAll(chartListParams?);
/*
Some examples:
https://github.com/seatsio/seatsio-js/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-js/blob/master/README.md#listing-all-charts
*/
client.Charts.ListFirstPage(<optional params>)
client.Charts.ListPageAfter(afterId, <optional params>)
client.Charts.ListPageBefore(beforeId, <optional params>)
// Optional parameters allow for fine-tuning results, and are provided by support functions
// Combinations of these parameters are possible
sup := charts.ChartSupport
charts, err := client.Charts.ListFirstPage(sup.WithFilter("foo"))
charts, err := client.Charts.ListFirstPage(sup.WithTag("aTag"))
charts, err := client.Charts.ListFirstPage(sup.WithExpandEvents(true))
charts, err := client.Charts.ListFirstPage(sup.WithExpandValidation(true))
charts, err := client.Charts.ListFirstPage(sup.WithExpandVenueType(true))
charts, err := client.Charts.ListFirstPage(sup.WithExpandZones(true))
// Simply list all charts
charts, err := client.Charts.ListAll()
/*
Some examples:
https://github.com/seatsio/seatsio-go/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-go/blob/master/README.md#listing-all-charts
*/
The maximum number of charts that can be retrieved in a single request is 20.
An example
curl https://api-{region}.seatsio.net/charts -u aSecretKey:
{
"next_page_starts_after": 12,
"items": [
{
"name":"chart1",
"id":"20",
"key":"6451436c-24fb-11e7-93ae-92361f002671",
"status":"PUBLISHED",
"tags": [],
"archived": false,
"publishedVersionThumbnailUrl": "https://thumbnails.seats.io/workspaceKey/.../published/.../thumbnail"
},
{
"name":"chart2",
"id":"19",
"key":"749b9650-24fb-11e7-93ae-92361f002671",
"status":"PUBLISHED_WITH_DRAFT",
"tags": ["tag1", "tag2"],
"archived": false,
"publishedVersionThumbnailUrl": "https://thumbnails.seats.io/workspaceKey/.../published/.../thumbnail",
"draftVersionThumbnailUrl": "https://thumbnails.seats.io/workspaceKey/.../draft/.../thumbnail"
}
]
}
The status of a chart can be either
- "NOT_USED": there are no events linked to the chart
- "PUBLISHED": there's an event linked to the chart, and there's no draft version
- "PUBLISHED_WITH_DRAFT": there's an event linked to the chart, and a draft version exists
publishedVersionThumbnailUrl (and draftVersionThumbnailUrl if applicable) are URLs that return a PNG thumbnail for the chart.
Query parameters
This is a paginated API endpoint, so the normal pagination query params (limit, start_after_id and end_before_id) are applicable. See this page for more info.
filter (optional)
Allows you to filter on chart name (case insensitive). Specifying multiple filters will result in a 400 Bad Request.tag (optional)
Return only charts that have this tag. Specifying multiple tags will result in a 400 Bad Request.expand (optional) Allow returning extra information about the chart:
expand=events
expand=validation
expand=venueType
expand=zones
These parameters can be combined:
expand=events&expand=validation&expand=venueType&expand=zones
- eventsLimit (optional)
The maximum number of events to retrieve per chart, when
expand=events
is also passed in. Defaults to 10. Cannot be more than 10. If you need more, please use the List events endpoint.
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
// newest charts having 'london' in their name
$seatsioClient->charts->listFirstPage((new ChartListParams())->withFilter('london'));
// newest charts tagged 'WestEnd'
$seatsioClient->charts->listFirstPage((new ChartListParams())->withTag('WestEnd'));
// newest charts, together with validation errors and warnings
$seatsioClient->charts->listFirstPage((new ChartListParams())->withExpandValidation(true));
// newest charts and a list of linked events
$seatsioClient->charts->listFirstPage((new ChartListParams())->withExpandEvents(true));
// newest charts and venue types
$seatsioClient->charts->listFirstPage((new ChartListParams())->withExpandVenueType(true));
// newest charts and zones
$seatsioClient->charts->listFirstPage((new ChartListParams())->withExpandZones(true));
// newest charts having 'london' in their name
await Client.Charts.ListFirstPageAsync(filter: "london"));
// newest charts tagged 'WestEnd'
await Client.Charts.ListFirstPageAsync(tag: "foo");
// newest charts, together with validation errors and warnings
await Client.Charts.ListFirstPageAsync(expandValidation: true);
// newest charts and a list of linked events
await Client.Charts.ListFirstPageAsync(expandEvents: true);
// newest charts and venue types
await Client.Charts.ListFirstPageAsync(expandVenueTypes: true);
// newest charts and zones
await Client.Charts.ListFirstPageAsync(expandZones: true);
// newest charts having 'london' in their name
client.charts.listFirstPage(new ChartListParams().withFilter("london"));
// newest charts tagged 'WestEnd'
client.charts.listFirstPage(new ChartListParams().withTag("WestEnd"));
// newest charts, together with validation errors and warnings
client.charts.listFirstPage(new ChartListParams().expandValidation(true));
// newest charts and a list of linked events
client.charts.listFirstPage(new ChartListParams().withExpandEvents(true));
// newest charts, together with venue types
client.charts.listFirstPage(new ChartListParams().withExpandVenueTypes(true));
// newest charts, together with zones
client.charts.listFirstPage(new ChartListParams().withExpandZones(true));
# newest charts having 'london' in their name
client.charts.list_first_page(filter="london")
# newest charts tagged 'WestEnd'
client.charts.list_first_page(tag="WestEnd")
# newest charts, together with validation errors and warnings
client.charts.list_first_page(with_validation=True)
# newest charts and a list of linked events
client.charts.list_first_page(expand_events=True)
# newest charts and venue types
client.charts.list_first_page(expand_venue_types=True)
# newest charts and zones
client.charts.list_first_page(expand_zones=True)
# newest charts having 'london' in their name
client.charts.list(chart_filter: 'london').first_page()
# newest charts tagged 'WestEnd'
client.charts.list(tag: 'WestEnd').first_page()
# newest charts, together with validation errors and warnings
client.charts.list(with_validation: true).first_page()
# newest charts and a list of linked events
client.charts.list(expand_events: true).first_page()
# newest charts and venue types
client.charts.list(expand_venue_types: true).first_page()
# newest charts and zones
client.charts.list(expand_zones: true).first_page()
// newest charts having 'london' in their name
let params = new ChartListParams().withFilter('london');
await client.charts.listFirstPage(params);
// newest charts tagged 'WestEnd'
let params = new ChartListParams().withTag('WestEnd');
await client.charts.listFirstPage(params);
// newest charts, together with validation errors and warnings
let params = new ChartListParams().withValidation(true);
await client.charts.listFirstPage(params);
// newest charts and a list of linked events
let params = new ChartListParams().withExpandEvents(true);
await client.charts.listFirstPage(params);
let params = new ChartListParams().withExpandEvents(true).withEventsLimit(10);
await client.charts.listFirstPage(params);
// newest charts and venue types
let params = new ChartListParams().withExpandVenueTypes(true);
await client.charts.listFirstPage(params);
// newest charts and zones
let params = new ChartListParams().withExpandZones(true);
await client.charts.listFirstPage(params);
{
"items": [
{
"name":"chart1",
"id":"20",
"key":"6451436c-24fb-11e7-93ae-92361f002671",
"status":"PUBLISHED",
"archived": false,
"publishedVersionThumbnailUrl": "https://thumbnails.seats.io/workspaceKey/.../published/.../thumbnail",
"events": [
{
"id": "50",
"bookWholeTables": false,
"key": "eventKey2"
},
{
"id": "49",
"bookWholeTables": false,
"key": "event34"
}
],
"validation": {
"errors": ["VALIDATE_OBJECTS_WITHOUT_CATEGORIES"],
"warnings": ["VALIDATE_DUPLICATE_LABELS"]
},
"venueType": "SIMPLE"
},
{
"name":"chart2",
"id":"19",
"key":"749b9650-24fb-11e7-93ae-92361f002671",
"status":"NOT_USED",
"archived": false,
"publishedVersionThumbnailUrl": "https://thumbnails.seats.io/workspaceKey/.../published/.../thumbnail"
}
]
}