Fumadocs

Update special event

Update the details of a special event

Demo Only
PATCH
/special-events/{eventId}
/special-events/{eventId}

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

namestring

Name of the special event

Example: "Pirate Coding Workshop"

locationstring

Location where the special event is held

Example: "Computer Room"

eventDescriptionstring

Description of the special event

Example: "Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."

datesarray<string>

List of planned dates for the special event

pricenumber

Price of a ticket for the special event

Example: 25Format: "float"

Path Parameters

eventId
Required
string

An identifier for a special event.

Example: "dad4bce8-f5cb-4078-a211-995864315e39"Format: "uuid"
Status codeDescription
200Success
400Bad request
404Not found
curl -X PATCH "https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39" \
  -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
}'

Information about a 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
}