Events
Create special events
Creates a new special event for the museum.
Authorization
MuseumPlaceholderAuth AuthorizationBasic <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/special-events" \ -H "Content-Type: application/json" \ -d '{ "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-05", "2023-09-08" ], "price": 0 }'{
"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-05",
"2023-09-08"
],
"price": 30
}{
"type": "object",
"title": "Validation failed"
}{
"type": "object",
"title": "Validation failed"
}Last updated on