Fumadocs

Create special events

Creates a new special event for the museum.

Demo Only
POST
/special-events
/special-events

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

name
Required
string

Name of the special event

Example: "Pirate Coding Workshop"

location
Required
string

Location where the special event is held

Example: "Computer Room"

eventDescription
Required
string

Description of the special event

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

dates
Required
array<string>

List of planned dates for the special event

price
Required
number

Price of a ticket for the special event

Example: 25Format: "float"

metaobject

Status codeDescription
200Success
400Bad request
404Not found
curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/special-events" \
  -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": {}
}'

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
}