v23

latestOpenAPI 3.0.0raw.githubusercontent.com2018-12-12442338.0 KB
events

Add a new event

Add a new event

post/events

Request body

detailsstring required

Details of the event

venue_idstring

UUID of the venue

timestring

Time the event is run

Example request

{
  "details": "Community group run on the first and second Thursday of the month",
  "venue_id": "8769812b-d077-4008-bce7-31deb1f82e97",
  "time": "Every first and second Thursday of the month"
}

Response

Succesfully added a new event

idstring

UUID of event

detailsstring

Details of the event

timestring

Time the event is run

venue_idstring

UUID of the venue

createdstring date-time

The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

updatedstring date-time

The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

Example response

{
  "id": "fd2da797-faa8-4cb3-b4a8-45ff0174ab51",
  "details": "Community group run on the first and second Thursday of the month",
  "time": "Every first and second Thursday of the month",
  "venue_id": "8769812b-d077-4008-bce7-31deb1f82e97",
  "created": "2017-07-21T17:32:28Z",
  "updated": "2017-07-21T18:38:30Z"
}