Fumadocs
Events

Update special event

Update the details of a special event.

PATCH
/special-events/{eventId}

Authorization

AuthorizationRequiredBasic <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

eventIdRequiredstring

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 '{
    "location": "On the beach.",
    "price": 15
  }'

Success.

{
  "summary": "Update special event",
  "value": {
    "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
  }
}

How is this guide?