Update special event
PATCH/special-events/:eventId
Update the details of a special event
Request
Path Parameters
eventId uuidrequired
An identifier for a special event.
- application/json
Body
required
name EventName
Name of the special event
location EventLocation
Location where the special event is held
eventDescription EventDescription
Description of the special event
dates date[]
List of planned dates for the special event
price float
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
}
Update special event
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "On the beach.",
"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": 15
}
Bad request
Not found
Loading...