Update extra data for multiple objects
Rate limits
This endpoint belongs to the priority lane.
Updates the extra data for a bunch of objects in an event, without changing the object status.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/events/{eventKey}/actions/update-extra-data
$extraDatas = [
"A-1" => ["userId" => "123"],
"A-2" => ["userId" => "456"]
];
$seatsioClient->events->updateExtraDatas("event34", $extraDatas);
var extraData1 = new Dictionary<string, object> {{ "userId", "123" }};
var extraData2 = new Dictionary<string, object> {{ "userId", "456" }};
var extraDatas = new Dictionary<string, object> {{ "A-1", extraData1 }, { "A-2", extraData2 }};
await Client.Events.UpdateExtraDatasAsync("event34", extraDatas);
Map<String, Object> extraData1 = new HashMap<>();
extraData1.put("userId", "123");
Map<String, Object> extraData2 = new HashMap<>();
extraData1.put("userId", "456");
Map<String, Map<String, Object>> extraDatas = new HashMap<>();
extraDatas.put("A-1", extraData1);
extraDatas.put("A-2", extraData2);
client.events.updateExtraDatas("event34", extraDatas);
extra_data1 = {"userId": "123"}
extra_data2 = {"userId": "456"}
client.events.update_extra_datas("event34", { "A-1": extra_data1, "A-2": extra_data2})
extra_data1 = {"userId": "123"}
extra_data2 = {"userId": "456"}
client.events.update_extra_datas key: "event34", extra_data: { "A-1": extra_data1, "A-2": extra_data2}
let extraData1 = {"userId": "123"}, extraData2 = {"userId": "456"};
await client.events.updateExtraDatas('eventKey', {'A-1': extraData1, 'A-2': extraData2});
err = client.Events.UpdateExtraData("eventKey", map[string]events.ExtraData{
"A-1": {"userId": "123"},
"A-2": {"userId": "456"},
})
{
"extraData": {
"A-1": {
"userId": "123"
},
"A-2": {
"userId": "456"
}
}
}
extraData is a mapping between object labels and extra data objects. The extra data objects must be valid JSON objects.
Example request
curl https://api-{region}.seatsio.net/events/event34/actions/update-extra-data \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"extraData": {"A-1": {"userId": "123"}, "A-2": {"userId": "456"}}}'
Response
204 - No Content, or 404 when one or more objects don't exist on the chart.