Seating Events
Seating Events are used manage the status of objects within a map for given event. An event represents a Seatmap + Revision and keeps track of the state. The state includes all the Objects of the Map.
Base URL:
https://seatmap.vivenu.com/api
or https://seatmap.vivenu.dev/api
Endpoints
Create an Event
In order to create a new event, you will have to create first a Seatmap and Revision.
If you already have a seatmap and a revision created you can create a new event with this endpoint.
Payload
seatMapId
Required
string
The ID of the Seatmap to be used
revisionId
Required
string
The ID of the Revision of the seatmap for the event
Responses
200
Success
post
/api/event
{"seatMapId": "string","revisionId": "string"}
Response
application/json
{"_id": "string","seatMapId": "string","revisionId": "string","_owner": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
get
/api/event/{id}
Response
application/json
{"_id": "string","seatMapId": "string","revisionId": "string","_owner": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
get
/api/event
Response
application/json
[{"_id": "string","seatMapId": "string","revisionId": "string","_owner": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}]
The Contingent object
Attributes
name
Required
string
The name of the Contingent
eventId
Required
string
The ID of the event this Contingent belongs to
Optional Attributes
Collapse allExample
{"name": "string","eventId": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5,"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
post
/api/event/{id}/contingents
{"name": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5}
Response
application/json
{"name": "string","eventId": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5,"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
put
/api/event/{id}/contingents/{contingentId}
{"name": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5}
Response
application/json
{"name": "string","eventId": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5,"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
delete
/api/event/{id}/contingents/{contingentId}
Response
application/json
get
/api/event/{id}/contingents/{contingentId}
Response
application/json
{"name": "string","eventId": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5,"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
get
/api/event/{id}/contingents
Response
application/json
[{"name": "string","eventId": "string","blockedUntil": "2030-01-23T23:00:00.123Z","objects": ["string"],"generalAdmission": true,"amount": 10.5,"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}]