Events
Special events hosted by the Museum
List special events
Return a list of upcoming special events at the museum.
Authorization
AuthorizationRequiredBasic <token>
In: header
Query Parameters
startDatestring
The starting date to retrieve future operating hours from. Defaults to today's date.
Example:"2023-02-23"Format: "date"endDatestring
The end of a date range to retrieve special events for. Defaults to 7 days after startDate.
"2023-04-18"Format: "date"pageinteger
The page number to retrieve.
Example:2Default: 1limitinteger
The number of days per page.
Example:15Default: 10Maximum: 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
AuthorizationRequiredBasic <token>
In: header
Request Body
nameRequiredstring
Name of the special event
Example:"Pirate Coding Workshop"locationRequiredstring
Location where the special event is held
Example:"Computer Room"eventDescriptionRequiredstring
Description of the special event
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."datesRequiredarray<string>
List of planned dates for the special event
priceRequirednumber
Price of a ticket for the special event
Example:25Format: "float"metaobject
| 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
AuthorizationRequiredBasic <token>
In: header
Path Parameters
eventIdRequiredstring
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
AuthorizationRequiredBasic <token>
In: header
Request Body
namestring
Name of the special event
Example:"Pirate Coding Workshop"locationstring
Location where the special event is held
Example:"Computer Room"eventDescriptionstring
Description of the special event
Example:"Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang)."datesarray<string>
List of planned dates for the special event
pricenumber
Price of a ticket for the special event
Example:25Format: "float"Path Parameters
eventIdRequiredstring
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
AuthorizationRequiredBasic <token>
In: header
Path Parameters
eventIdRequiredstring
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
