Create special events

Creates a new special event for the museum.

SecurityHTTP: MuseumPlaceholderAuth
Request
Request Body schema: application/json
name
required
string (EventName)

Name of the special event

location
required
string (EventLocation)

Location where the special event is held

eventDescription
required
string (EventDescription)

Description of the special event

dates
required
Array of strings <date> (EventDates)

List of planned dates for the special event

price
required
number <float> (EventPrice)

Price of a ticket for the special event

post
/special-events
Request samples
application/json
{ "name": "Mermaid Treasure Identification and Analysis", "location": "Under the seaaa 🦀 🎶 🌊.", "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-05T00:00:00.000Z", "2023-09-08T00:00:00.000Z" ], "price": 0 }
Responses

200

Success

Response Schema: application/json
eventId
required
string <uuid> (EventId)

Identifier for a special event.

name
required
string (EventName)

Name of the special event

location
required
string (EventLocation)

Location where the special event is held

eventDescription
required
string (EventDescription)

Description of the special event

dates
required
Array of strings <date> (EventDates)

List of planned dates for the special event

price
required
number <float> (EventPrice)

Price of a ticket for the special event

400

Bad request

404

Not found

Response samples
application/json
{ "eventId": "dad4bce8-f5cb-4078-a211-995864315e39", "name": "Mermaid Treasure Identification and Analysis", "location": "Under the seaaa 🦀 🎶 🌊.", "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-05T00:00:00.000Z", "2023-09-08T00:00:00.000Z" ], "price": 30 }