events

Add a new event

Changed on

Add a new event

post/events

Request

  • Base URL
    https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1
  • Auth
    none declared

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"
}

Changes

    • info

      added the optional property created to the response with the status

    • info

      added the optional property updated to the response with the status

    • warning

      removed the optional property flagged from the response with the status