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

Was this section helpful?

YesNo
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 an Event

Query

No supported query parameters
Responses
200
Success

Was this section helpful?

YesNo
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 all Events

Query

No supported query parameters
Responses
200
Success

Was this section helpful?

YesNo
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 all
Was this section helpful?
YesNo
Example
{
"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"
}

Create a Contingent

Payload

Optional Attributes

Collapse all
Responses
200
Success

Was this section helpful?

YesNo
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"
}

Update a Contingent

Payload

Optional Attributes

Collapse all
Responses
200
Success

Was this section helpful?

YesNo
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 a Contingent

Query

No supported query parameters
Responses
200
Success

Was this section helpful?

YesNo
delete
/api/event/{id}/contingents/{contingentId}
Response
application/json

Get a Contingent

Query

No supported query parameters
Responses
200
Success

Was this section helpful?

YesNo
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 all Contingents

Query

No supported query parameters
Responses
200
Success

Was this section helpful?

YesNo
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"
}
]