---
title: "Add a new provider"
method: POST
path: "/providers"
tags: ["providers"]
---

# Add a new provider

`POST /providers`

## 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`
- Auth: none declared

Add a new provider

## 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 `201`

Succesfully added a new provider

- 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 `201` status
  - added the optional property `updated` to the response with the `201` status
- **2018-12-04** `24536106a71d`: 4 info
  - added the optional property `contact_id` to the response with the `201` status
  - added the optional property `flagged` to the response with the `201` status
  - added the optional property `published` to the response with the `201` status
  - added the optional property `venue_id` to the response with the `201` status
- **2018-12-03** `eb3e6b40700e`: 1 info
  - added the new optional request property `flagged`
- **2018-11-22** `552b0403c17c`: 2 breaking
  - the request property `name` became required
  - the request property `published` became required
- **2018-11-22** `bd86c95dc09a`: 6 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`
  - …2 more

[Operation history](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/changes/providers/post.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)
