Create a partial season
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/seasons/{topLevelSeasonKey}/partial-seasons
$seatsioClient->seasons->createPartialSeason("aTopLevelSeason");
$seatsioClient->seasons->createPartialSeason("aTopLevelSeason", "aPartialSeason");
$seatsioClient->seasons->createPartialSeason("aTopLevelSeason", ["event1", "event2");
await Client.Seasons.CreatePartialSeasonAsync("aTopLevelSeason");
await Client.Seasons.CreatePartialSeasonAsync("aTopLevelSeason", partialSeasonKey: "aPartialSeason");
await Client.Seasons.CreatePartialSeasonAsync("aTopLevelSeason", eventKeys: new[] {"event1", "event2"});
client.seasons.createPartialSeason("aTopLevelSeason");
client.seasons.createPartialSeason("aTopLevelSeason", "aPartialSeason", null);
client.seasons.createPartialSeason("aTopLevelSeason", null, List.of("event1", "event2"));
client.seasons.create_partial_season("aTopLevelSeason")
client.seasons.create_partial_season("aTopLevelSeason", partial_season_key="aPartialSeason")
client.seasons.create_partial_season("aTopLevelSeason", event_keys=["event1", "event2"])
client.seasons.create_partial_season key: "aTopLevelSeason"
client.seasons.create_partial_season key: "aTopLevelSeason", partial_season_key: 'aPartialSeason'
client.seasons.create_partial_season key: "aTopLevelSeason", event_keys: ['event1', 'event2']
await client.seasons.createPartialSeason('aTopLevelSeason');
await client.seasons.createPartialSeason('aTopLevelSeason', 'aPartialSeason');
await client.seasons.createPartialSeason('aTopLevelSeason', null, ['event1', 'event2']);
partialSeason, err := client.Seasons.CreatePartialSeason("aTopLevelSeason")
partialSeason, err := client.Seasons.CreatePartialSeasonWithOptions(
"aTopLevelSeason",
&seasons.CreatePartialSeasonParams{Key: "aPartialSeason"},
)
partialSeason, err := client.Seasons.CreatePartialSeasonWithOptions(
"aTopLevelSeason",
&seasons.CreatePartialSeasonParams{EventKeys: []string{"event1", "event3"}},
)
Request
{
"key": "aPartialSeason",
"eventKeys": ["event1", "event2"]
}
key: the key of the partial season. This is the unique identifier of the partial season in your own database. Optional, if you don't pass in your own partial season key, seats.io will generate one.
eventKeys: optional array of event keys that should be added to the partial season. Those events must already belong to the top-level season.
Example request
curl https://api-{region}.seatsio.net/seasons/aTopLevelSeason/partial-seasons \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"key": "aPartialSeason"}'
Response
{
"id": 169,
"eventKey": "aPartialSeason",
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
},
"supportsBestAvailable": true,
"createdOn": "2017-05-05T10:58:44.715Z",
"isSeason": true,
"isTopLevelSeason": false,
"isPartialSeason": true,
"isEventInSeason": false,
"topLevelSeasonKey": "aSeason",
"events": [
{
"id": 170,
"key": "event1",
...
},
...
]
}