v23

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

Update a specific provider

Update a specific provider

put/providers/{id}

Path parameters

idstring required

The UUID of the provider

Request body

namestring required

The name of the provider

publishedinteger required

Is provider published?

venue_idstring

ID of the providers venue

contact_idstring

ID of the providers contact

flaggedboolean

Should this content be reivewed?

Example request

{
  "name": "Hackney Quest",
  "venue_id": "5308687a-aec7-4ec3-9f56-1ebbd275a161",
  "contact_id": "22632363-e326-4991-8f10-5483e5047758"
}

Response

Provider udpated

idstring

UUID of provider

namestring

The name of the provider

publishedinteger

Boolean if provider is published

venue_idstring

ID of the providers venue

contact_idstring

ID of the providers contact

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": "7a52060d-be2d-482e-bd9e-0f8041554925",
  "name": "Hackney Quest",
  "published": 1,
  "venue_id": "5308687a-aec7-4ec3-9f56-1ebbd275a161",
  "contact_id": "22632363-e326-4991-8f10-5483e5047758",
  "created": "2017-07-21T17:32:28Z",
  "updated": "2017-07-21T18:38:30Z"
}