Fumadocs

Create special events

Creates a new special event for the museum.

POST
/special-events
Server
/special-events

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

application/jsonRequired

name
Required
string

Name of the special event

location
Required
string

Location where the special event is held

eventDescription
Required
string

Description of the special event

dates
Required
array<string>

List of planned dates for the special event

price
Required
number

Price of a ticket for the special event

Format: "float"

metaobject

Webhooks

Create Event Notification

POST
/{$request.query.callbackUrl}?event={$request.query.event}

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

application/jsonOptional

messagestring

curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/special-events" \
  -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,
    "meta": {}
  }'

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
}