Create events in season
This call creates events and adds them to the season.
If objects have been booked for the season, they're unavailable on the newly created events as well.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
GET https://api-{region}.seatsio.net/seasons/{seasonKey}/actions/create-events
$seatsioClient->seasons->createEvents("aSeason", ['event1', 'event2']);
$seatsioClient->seasons->createEvents("aSeason", null, 2);
await Client.Seasons.CreateEventsAsync("aSeason", eventKeys: new[] {"event1", "event2"});
await Client.Seasons.CreateEventsAsync("aSeason", numberOfEvents: 2);
client.seasons.createEvents("aSeason", List.of("event1", "event2"));
client.seasons.createEvents("aSeason", 2);
client.seasons.create_events("aSeason", event_keys=["event1", "event2"])
client.seasons.create_events("aSeason", number_of_events=2)
client.seasons.create_events key: "aSeason", event_keys: %w[event1 event2]
client.seasons.create_events key: "aSeason", number_of_events: 2
await client.seasons.createEvents('aSeason', null, ['event1', 'event2']);
await client.seasons.createEvents('aSeason', 2);
events, err := client.Seasons.CreateEventsWithEventKeys(season.Key, "event1", "event2")
events, err := client.Seasons.CreateNumberOfEvents("aSeason", 2)
Request
// with event keys to create (those events should not yet exist)
{
"eventKeys": ["event1", "event2"]
}
// with number of events
{
"numberOfEvents": 2
}
curl https://api-{region}.seatsio.net/seasons/aSeason/actions/create-events \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"numberOfEvents": 2}'
Response
{
"events": [
{
"id": 171,
"key": "event2",
...
},
{
"id": 170,
"key": "event1",
...
}
]
}