Create special events
POST/special-events
Creates a new special event for the museum.
Request
- application/json
Body
required
name EventNamerequired
Name of the special event
location EventLocationrequired
Location where the special event is held
eventDescription EventDescriptionrequired
Description of the special event
dates date[]required
List of planned dates for the special event
price floatrequired
Price of a ticket for the special event
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
- default_example
Schema
eventId uuidrequired
Identifier for a special event.
name EventNamerequired
Name of the special event
location EventLocationrequired
Location where the special event is held
eventDescription EventDescriptionrequired
Description of the special event
dates date[]required
List of planned dates for the special event
price floatrequired
Price of a ticket for the special event
{
"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
}
Special event created
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "Under the seaaa 🦀 🎶 🌊.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 30
}
Bad request
Not found
Loading...