Save social distancing rulesets

A social distancing ruleset determines which seats should not be selectable for a ticket buyer. Something like: 'families of up to 4 people can sit next to each other, but there should be a gap of 2 seats to the left and to the right of them'.

Applying a ruleset to an event

This article describes the call to add rulesets to a chart. To apply one of those rulesets to an event, use the create event orupdate event call.

POST https://api-{region}.seatsio.net/charts/{chartKey}/social-distancing-rulesets

Returns 204 - No Content

{
"socialDistancingRulesets": {
"ruleset1": {
"name": "My first ruleset",
"index": 0,
"numberOfDisabledSeatsToTheSides": 2,
"disableSeatsInFrontAndBehind": true,
"disableDiagonalSeatsInFrontAndBehind": true,
"numberOfDisabledAisleSeats": 0,
"maxGroupSize": 4,
"enabledSeats": [],
"disabledSeats": ["A-1", "A-2", "A-3", "A-4", "A-5"],
"maxOccupancyAbsolute": 150, // or: "maxOccupancyPercentage": 30,
"oneGroupPerTable": true
},
"ruleset2": {
"fixedGroupLayout": true,
"disabledSeats": ["A-1", "A-2", "A-3", "A-4", "A-5"]
}
}
}
  • name: required. The name of the ruleset. Used to refer to it internally.
  • index: optional. Number that determines the order of the rulesets when displayed in a list. Lower indexes go to the top.
  • numberOfDisabledSeatsToTheSides: optional. The number of seats to disable to the left and right of a selected seat.
  • disableSeatsInFrontAndBehind: optional. The number of seats to disable to the left and right of a selected seat.
  • disableDiagonalSeatsInFrontAndBehind: optional. Set to true to not only disable seats directly in front of and behind a seat, but also diagonally. Can only be enabled if disableSeatsInFrontAndBehind is true. If you don't pass in disableDiagonalSeatsInFrontAndBehind, and numberOfDisabledSeatsToTheSides is bigger than 1, disableDiagonalSeatsInFrontAndBehind is set to true automatically.
  • numberOfDisabledAisleSeats: optional. Disables seats on each end of a row.
  • maxGroupSize: optional. How many people can sit next to each other. Set to 0 for no limit.
  • enabledSeats: optional. Array of seats that should be selectable by ticket buyers, even if the rules say otherwise. Useful to mark some seats as non-aisle seats when the aisle seats rule is enabled.
  • disabledSeats: optional. Array of seats that should not be selectable by ticket buyers. Could be used to mark every other row as disabled.
  • maxOccupancyAbsolute: optional. The maximum number of people that are allowed for this event.
  • maxOccupancyPercentage: optional. Integer between 1 and 100. The maximum number of people that are allowed for this event, expressed as a percentage of the total capacity of the venue.
  • oneGroupPerTable: optional boolean. Defaults to false. When true, table seats that are not booked are left empty. Only one group of people can sit at a table.
  • fixedGroupLayout: boolean. Defaults to false. Set to true to manually indicate which seats should be booked as a group (by passing in disabledSeats). When the ticket buyer clicks on a seat, all selectable seats next to that seat become selected as well.
curl https://api-{region}.seatsio.net/charts/{chartKey}/social-distancing-rulesets \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{
"socialDistancingRulesets": {
"ruleset1": {
"name": "My first ruleset",
"index": 0,
"numberOfDisabledSeatsToTheSides": 2,
"disableSeatsInFrontAndBehind": true,
"disableDiagonalSeatsInFrontAndBehind": true,
"numberOfDisabledAisleSeats": 0,
"maxGroupSize": 4,
"enabledSeats": [],
"disabledSeats": ["A-1", "A-2", "A-3", "A-4", "A-5"],
"maxOccupancyAbsolute": 150,
"oneGroupPerTable": true
}
}
}'