v2

latestOpenAPI 3.1.0MITraw.githubusercontent.com2025-12-2382523.3 KB
Events

Create special events

Creates a new special event for the museum.

post/special-events

Request body

namestring required

Name of the special event.

locationstring required

Location where the special event is held.

eventDescriptionstring required

Description of the special event.

datesDate[] required

List of planned dates for the special event.

pricenumber float required

Price of a ticket for the special event.

Example request

{
  "name": "Pirate Coding Workshop",
  "location": "Computer Room",
  "eventDescription": "Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang).",
  "dates": [
    "2023-10-29"
  ],
  "price": 25
}

Response

Success.

eventIdstring uuid required

Identifier for a special event.

namestring required

Name of the special event.

locationstring required

Location where the special event is held.

eventDescriptionstring required

Description of the special event.

datesDate[] required

List of planned dates for the special event.

pricenumber float required

Price of a ticket for the special event.

Example response

{
  "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54",
  "name": "Pirate Coding Workshop",
  "location": "Computer Room",
  "eventDescription": "Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang).",
  "dates": [
    "2023-10-29"
  ],
  "price": 25
}