Skip to content

Update special event

Request

Update the details of a special event.
Security
MuseumPlaceholderAuth
Path
eventIdstring, (uuid)required
Identifier for a special event.
Example:dad4bce8-f5cb-4078-a211-995864315e39
Bodyapplication/jsonrequired
namestring(EventName)
Name of the special event.
Example:"Pirate Coding Workshop"
locationstring(EventLocation)
Location where the special event is held.
Example:"Computer Room"
eventDescriptionstring(EventDescription)
Description of the special event.
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."
datesArray of strings, (date)(EventDates)
List of planned dates for the special event.
Example:
[ "2023-10-29" ]
pricenumber, (float)(EventPrice)
Price of a ticket for the special event.
Example:25
curl -i -X PATCH \
  -u '<username>:<password>' \
  /_mock/openapi/special-events/dad4bce8-f5cb-4078-a211-995864315e39 \
  -H 'Content-Type: application/json' \
  -d '{
    "location": "On the beach.",
    "price": 15
  }'

Responses

Success.
Bodyapplication/json
eventIdstring, (uuid)(EventId)required
Identifier for a special event.
Example:"3be6453c-03eb-4357-ae5a-984a0e574a54"
namestring(EventName)required
Name of the special event.
Example:"Pirate Coding Workshop"
locationstring(EventLocation)required
Location where the special event is held.
Example:"Computer Room"
eventDescriptionstring(EventDescription)required
Description of the special event.
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."
datesArray of strings, (date)(EventDates)required
List of planned dates for the special event.
Example:
[ "2023-10-29" ]
pricenumber, (float)(EventPrice)required
Price of a ticket for the special event.
Example:25
Response
{ "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 }