---
title: "Update a specific provider"
method: PUT
path: "/providers/{id}"
tags: ["providers"]
---

# Update a specific provider

`PUT /providers/{id}`

## Request

- Base URL: `https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1`
- URL: `https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1/providers/{id}`
- Auth: none declared

Update a specific provider

## Path parameters

- `id` string, required

## Request body

- AddProvider
  - `name` string, required: The name of the provider
  - `published` integer, required: Is provider published?
  - `venue_id` string: ID of the providers venue
  - `contact_id` string: ID of the providers contact
  - `flagged` boolean: Should this content be reivewed?

## Response `200`

Provider udpated

- Providers
  - `id` string: UUID of provider
  - `name` string: The name of the provider
  - `published` integer: Boolean if provider is published
  - `venue_id` string: ID of the providers venue
  - `contact_id` string: ID of the providers contact
  - `created` string, date-time: The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
  - `updated` string, date-time: The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
  - `flagged` boolean: Should this content be reivewed?

## Changes

- **2018-12-05** `5ec941f0459f`: 2 info
  - added the optional property `created` to the response with the `200` status
  - added the optional property `updated` to the response with the `200` status
- **2018-12-03** `eb3e6b40700e`: 2 info
  - added the new optional request property `flagged`
  - added the optional property `flagged` to the response with the `200` status
- **2018-11-22** `552b0403c17c`: 2 breaking
  - the request property `name` became required
  - the request property `published` became required
- **2018-11-22** `bd86c95dc09a`: 9 info
  - added the new optional request property `contact_id`
  - added the new optional request property `name`
  - added the new optional request property `published`
  - added the new optional request property `venue_id`
  - …5 more

[Operation history](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/changes/providers/:id/put.md)

---

[API](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api.md) - [All operations](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/revisions/eb9745a84cde?raw)
