Events
Special events hosted by the Museum
List special events
Return a list of upcoming special events at the museum.
Authorization
Authorization
RequiredBasic <token>
In: header
Query Parameters
startDate
string
The starting date to retrieve future operating hours from. Defaults to today's date.
Example:"2023-02-23"
Format: "date"
endDate
string
The end of a date range to retrieve special events for. Defaults to 7 days after startDate
.
"2023-04-18"
Format: "date"
page
integer
The page number to retrieve.
Example:2
Default: 1
limit
integer
The number of days per page.
Example:15
Default: 10
Maximum: 30
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
A list of upcoming special events
Create special events
Creates a new special event for the museum.
Authorization
Authorization
RequiredBasic <token>
In: header
Request Body
name
Requiredstring
Name of the special event
Example:"Pirate Coding Workshop"
location
Requiredstring
Location where the special event is held
Example:"Computer Room"
eventDescription
Requiredstring
Description of the special event
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."
dates
Requiredarray<string>
List of planned dates for the special event
price
Requirednumber
Price of a ticket for the special event
Example:25
Format: "float"
meta
object
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
Information about a special event.
Get special event
Get details about a special event.
Authorization
Authorization
RequiredBasic <token>
In: header
Path Parameters
eventId
Requiredstring
An identifier for a special event.
Example:"dad4bce8-f5cb-4078-a211-995864315e39"
Format: "uuid"
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
Information about a special event.
Update special event
Update the details of a special event
Authorization
Authorization
RequiredBasic <token>
In: header
Request Body
name
string
Name of the special event
Example:"Pirate Coding Workshop"
location
string
Location where the special event is held
Example:"Computer Room"
eventDescription
string
Description of the special event
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."
dates
array<string>
List of planned dates for the special event
price
number
Price of a ticket for the special event
Example:25
Format: "float"
Path Parameters
eventId
Requiredstring
An identifier for a special event.
Example:"dad4bce8-f5cb-4078-a211-995864315e39"
Format: "uuid"
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
Information about a special event.
Delete special event
Delete a special event from the collection. Allows museum to cancel planned events.
Authorization
Authorization
RequiredBasic <token>
In: header
Path Parameters
eventId
Requiredstring
An identifier for a special event.
Example:"dad4bce8-f5cb-4078-a211-995864315e39"
Format: "uuid"
Status code | Description |
---|---|
204 | Success - no content |
400 | Bad request |
401 | Unauthorized |
404 | Not found |
Last updated on