Events
Retrieve Events
POST/api/[...]/discord/events
This endpoint allows you to retrieve event information.
API Returns same events as they would be visible to a pilot visiting the Events listing page.
Supported Authentication Types
API Token | Client Token | Grant Token |
---|---|---|
Yes | Yes | No |
Optional Body Attributes
- Name
event_name
- Type
- String
- Description
Event Name. If entered, events will be searched and results containing the string will be returned.
Response
{
"status": "success",
"request": {
"event_name": "Flight"
},
"data": {
{
"id": 14434,
"name": "DELIVERY FLIGHT 12",
"tag": null,
"subtype": null,
"image": "https://cdn.vamsys.xyz/phoenixMediaStore/event/74251/DEL-FLIGHT.png",
"points": "1000",
"focusAirport": false,
"event_start": "2024-09-18 21:00:00",
"event_end": "2024-09-26 01:00:00",
"registration_required": true,
"markdown": "We once again take our voyage from Boeing Field, Seattle to Dublin in our biggest event of the calendar. The vRYR Delivery Flight.",
"link": "https://staff.vamsys.dev/phoenix/events/14434?va=RYR3"
},
[...]
}
}
Retrieve Event Registration
POST/api/[...]/discord/events/registration/get
Supported Authentication Types
API Token | Client Token | Grant Token |
---|---|---|
Yes | Yes | No |
Required Body Attributes
- Name
event_id
- Type
- Integer
- Description
- Name
discord_member_id
- Type
- Integer
- Description
Response
{
"status": "success",
"request": {
"event_id": 123,
"discord_member_id": 123456789
},
"data": {
"registration_id": 14434,
"network": "vatsim",
"created_at": "2024-09-26 01:00:00"
}
}
Make Event Registration
POST/api/[...]/discord/events/registration/make
Supported Authentication Types
API Token | Client Token | Grant Token |
---|---|---|
Yes | Yes | No |
Required Body Attributes
- Name
event_id
- Type
- Integer
- Description
- Name
discord_member_id
- Type
- Integer
- Description
Response
{
"status": "success",
"request": {
"event_id": 123,
"discord_member_id": 123456789,
"network": "poscon",
},
"data": {
"registration_id": 14434,
"network": "poscon",
"created_at": "2024-09-26 01:00:00"
}
}
Remove Event Registration
POST/api/[...]/discord/events/registration/delete
Supported Authentication Types
API Token | Client Token | Grant Token |
---|---|---|
Yes | Yes | No |
Required Body Attributes
- Name
event_id
- Type
- Integer
- Description
- Name
discord_member_id
- Type
- Integer
- Description
Response
{
"status": "success",
"request": {
"event_id": 123,
"discord_member_id": 123456789
},
"data": {
}
}