v23

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

Add a new venue

Add a new venue

post/venues

Request body

provider_idstring

UUID of the provider

namestring required

Name of the venue

addressstring required

Address of the venue

detailsstring

Details of the venue

Example request

{
  "provider_id": "27e6bfc8-176c-4a46-b564-91dd19d64de5",
  "name": "Hackney Community Centre",
  "address": "1 Hillman St, London, E8 1DY",
  "details": "This is an awesome venue but hard to find"
}

Response

Succesfully added a new venue

idstring

UUID of venue

service_idstring

UUID of the provider

provider_idstring

UUID of the provider

namestring

Name of the venue

addressstring

Address of the venue

detailsstring

Details 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

flaggedboolean

Should this content be reivewed?

Example response

{
  "id": "a30f7cae-9db6-4347-a35f-4ff202fe7dde",
  "service_id": "8bfd9405-70cd-407d-a9af-8830a7c719c4",
  "provider_id": "27e6bfc8-176c-4a46-b564-91dd19d64de5",
  "name": "Hackney Community Centre",
  "address": "1 Hillman St, London, E8 1DY",
  "details": "This is an awesome venue but hard to find",
  "created": "2017-07-21T17:32:28Z",
  "updated": "2017-07-21T18:38:30Z"
}