styledsea
Museum

Update special event

Update the details of a special event

PATCH
/special-events/{eventId}
/special-events/dad4bce8-f5cb-4078-a211-995864315e39

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

application/jsonRequired

namestring

Name of the special event

locationstring

Location where the special event is held

eventDescriptionstring

Description of the special event

datesarray<string>

List of planned dates for the special event

pricenumber

Price of a ticket for the special event

Format: "float"

Path Parameters

eventId
Required
string

An identifier for a special event.

Format: "uuid"
curl -X PATCH "https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39" \
  -H "Authorization: Basic <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "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
  }'

Success

{
  "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
}