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

# Update a specific service

`PUT /services/{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/services/{id}`
- Auth: none declared

Update a specific service

## Path parameters

- `id` string, required

## Request body

- AddService
  - `name` string, required: The name of the service
  - `desc` string, required: Description of the service
  - `published` integer, required: Boolean if service is published
  - `provider_id` string: ID of the provider
  - `event_id` string: ID of the event
  - `contact_id` string: ID of the service contact
  - `eligibility_id` string: ID of eligibility object
  - `costoption_id` string: ID of cost option object
  - `flagged` boolean: Should this content be reivewed?

## Response `200`

Provider udpated

- Service
  - `id` string: UUID of service
  - `name` string: The name of the service
  - `desc` string: Description of the service
  - `published` integer: Boolean if service is published
  - `provider_id` string: ID of the provider
  - `event_id` string: ID of the event
  - `contact_id` string: ID of the service contact
  - `eligibility_id` string: ID of eligibility object
  - `costoption_id` string: ID of cost option object
  - `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-12** `eb9745a84cde`: 2 warning, 2 info
  - removed the request property `elegibility_id`
  - removed the optional property `elegibility_id` from the response with the `200` status
  - added the new optional request property `eligibility_id`
  - added the optional property `eligibility_id` to the response with the `200` status
- **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-04** `3344049bad1d`: 1 breaking, 1 info
  - added the new required request property `desc`
  - added the optional property `desc` 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

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