services

Update a specific service

Changed on

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
  • Auth
    none declared

Path parameters

idstring required

The UUID of the service

Request body

namestring required

The name of the service

descstring required

Description of the service

publishedinteger required

Boolean if service is published

provider_idstring

ID of the provider

event_idstring

ID of the event

contact_idstring

ID of the service contact

eligibility_idstring

ID of eligibility object

costoption_idstring

ID of cost option object

flaggedboolean

Should this content be reivewed?

Example request

{
  "name": "POSITIVE YOUTH ENGAGEMENT PROGRAMME (PYEP)",
  "desc": "The PYEP provides a huge number of events for youth in your area",
  "provider_id": "dd06b31c-61f6-4612-abca-fd3de120f419S",
  "event_id": "71209163-8f71-49a1-9959-4fbd75a79ac1",
  "contact_id": "22632363-e326-4991-8f10-5483e5047758",
  "eligibility_id": "bcd76798-d811-46d7-b7aa-64bdde71c18c",
  "costoption_id": "03b0a53f-0994-4a30-8988-8aed0dfbb560"
}

Response

Provider udpated

idstring

UUID of service

namestring

The name of the service

descstring

Description of the service

publishedinteger

Boolean if service is published

provider_idstring

ID of the provider

event_idstring

ID of the event

contact_idstring

ID of the service contact

eligibility_idstring

ID of eligibility object

costoption_idstring

ID of cost option object

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": "POSITIVE YOUTH ENGAGEMENT PROGRAMME (PYEP)",
  "desc": "The PYEP provides a huge number of events for youth in your area",
  "published": 1,
  "provider_id": "dd06b31c-61f6-4612-abca-fd3de120f419S",
  "event_id": "71209163-8f71-49a1-9959-4fbd75a79ac1",
  "contact_id": "22632363-e326-4991-8f10-5483e5047758",
  "eligibility_id": "bcd76798-d811-46d7-b7aa-64bdde71c18c",
  "costoption_id": "03b0a53f-0994-4a30-8988-8aed0dfbb560",
  "created": "2017-07-21T17:32:28Z",
  "updated": "2017-07-21T18:38:30Z"
}

Changes

    • warning

      removed the request property elegibility_id

    • warning

      removed the optional property elegibility_id from the response with the status

    • info

      added the new optional request property eligibility_id

    1 more change in this revision