Add events to partial season
This call adds events to a partial season. The events must be part of the top-level season.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
GET https://api-{region}.seatsio.net/seasons/{topLevelSeasonKey}/partial-seasons/{partialSeasonKey}/actions/add-events
$seatsioClient->seasons->addEventsToPartialSeason("aTopLevelSeason", "aPartialSeason", ["event1", "event2"]);
await Client.Seasons.AddEventsToPartialSeasonAsync("aTopLevelSeason", "aPartialSeason", new[] {"event1", "event2"});
client.seasons.addEventsToPartialSeason("aTopLevelSeason", "aPartialSeason", List.of("event1", "event2"));
client.seasons.add_events_to_partial_season("aTopLevelSeason", "aPartialSeason", ["event1", "event2"])
client.seasons.add_events_to_partial_season topLevelSeasonKey: "aTopLevelSeason", partialSeasonKey: "aPartialSeason", event_keys: %w[event1 event2]
await client.seasons.addEventsToPartialSeason('aTopLevelSeason', 'aPartialSeason', ['event1', 'event2']);
updatedSeason, err := client.Seasons.AddEventsToPartialSeason("aTopLevelSeason", "aPartialSeason", "event1", "event2")
Request
{
"eventKeys": ["event1", "event2"]
}
curl https://api-{region}.seatsio.net/seasons/aTopLevelSeason/partial-seasons/aPartialSeason/actions/add-events \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"eventKeys": ["event1", "event2"]}'
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",
...
},
...
]
}