Skip to main content

Create a season

POST https://api-{region}.seatsio.net/seasons

Request

// with event keys to create (those events should not yet exist)
{
"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28",
"key": "aSeason",
"eventKeys": ["event1", "event2"],
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
},
"forSaleConfig": {
"forSale": false,
"objects": ["section1", "section2"],
"areaPlaces": {"GA1": 3},
"categories": ["eventCategory1", "eventCategory2"]
}
}

// with number of events
{
"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28",
"key": "aSeason",
"numberOfEvents": 2,
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
}
}
  • chartKey: chart key to which the season will be linked. Required.

  • key: the key of the season. This is the unique identifier of the season in your own database. Optional, if you don't pass in your own season key, seats.io will generate one.

  • eventKeys: array of event keys for events that belong to the season. Those will be created automatically - the events should net yet exist. Cannot be used in combination with numberOfEvents.

  • numberOfEvents: number of events in the season. Those will be created automatically, with random keys. Cannot be used in combination with eventKeys.

  • tableBookingConfig: optional. When not passed in, the season inherits the table booking settings defined on the chart. mode can either be:

    • INHERIT: table booking settings are inherited from the chart (which is the default behaviour)
    • CUSTOM: when using this mode, you can pass in a tables object to override the table booking settings of the chart for some tables. The tables object has table labels as its keys, and BY_TABLE or BY_SEAT as values.
    • ALL_BY_SEAT: for this season, all tables are bookable by seat
    • ALL_BY_TABLE: for this season, all tables are bookable as a whole
  • channels: optional list of channels

  • forSaleConfig: an optional for-sale configuration

Example request

curl https://api-{region}.seatsio.net/seasons \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28"}'

Response

{
"id": 169,
"eventKey": "aSeason",
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
},
"supportsBestAvailable": true,
"createdOn": "2017-05-05T10:58:44.715Z",
"events": [
{
"id": 170,
"key": "event1",
...
},
...
],
"partialSeasonKeys": [],
"isSeason": true,
"isTopLevelSeason": true,
"isPartialSeason": false,
"isEventInSeason": false,
"forSaleConfig": {
"forSale": false,
"objects": ["section1", "section2"],
"areaPlaces": {"GA1": 3},
"categories": ["eventCategory1", "eventCategory2"]
}
}