# Health Facility Update

| **API URL**     | {{url}}/admin-service/healthfacility/update |
| --------------- | ------------------------------------------- |
| **Method**      | PUT                                         |
| **Description** | Update health facility                      |

#### **Sample Input** <a href="#healthfacilityupdate-v2-sampleinput" id="healthfacilityupdate-v2-sampleinput"></a>

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| id                     | Bigint   | Yes           | Health facility id                                                                                                                      |
| appTypes               | String   | Yes           | COMMUNITY                                                                                                                               |
| name                   | String   | Yes           | Health facility Name                                                                                                                    |
| type                   | String   | Yes           | Community Health Post                                                                                                                   |
| phuFocalPersonName     | String   | Yes           | Phu Focal Person Name                                                                                                                   |
| phuFocalPersonNumber   | String   | Yes           | Phu Focal Person Number                                                                                                                 |
| address                | String   | Yes           | Health facility address                                                                                                                 |
| chiefdom               | String   | Yes           | List of chiefdom details                                                                                                                |
| district               | String   | Yes           | List of district details                                                                                                                |
| cityName               | String   | Yes           | City Name                                                                                                                               |
| latitude               | Double   | Yes           | Location details                                                                                                                        |
| longitude              | Double   | Yes           | longitude details                                                                                                                       |
| postalCode             | Bigint   | Yes           | Postal Code of Health facility                                                                                                          |
| countryId              | Bigint   | Yes           | Country id                                                                                                                              |
| language               | String   | Yes           | “English“                                                                                                                               |
| linkedVillages         | String   | Yes           | List of linked Villages                                                                                                                 |
| parentTenantId         | Bigint   | Yes           | ParentTenant Id                                                                                                                         |
| linkedSupervisorIds    | String   | Yes           | Linked Supervisor Ids                                                                                                                   |
| linkedVillages         | String   | Yes           | List of linked Villages                                                                                                                 |
| clinicalWorkflows      | String   | Yes           | ClinicalWorkflows                                                                                                                       |
| customizedWorkflows    | String   | Yes           | CustomizedWorkflows                                                                                                                     |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | web                                                                                                                                     |

```
{
  "id": 1,
  "appTypes": [
    "COMMUNITY"
  ],
  "name": "HH onw",
  "type": "Community Health Centre",
  "phuFocalPersonName": "HH person",
  "phuFocalPersonNumber": "99XXXX761",
  "address": "Guindy",
  "district": {},
  "chiefdom": {},
  "cityName": "alleppey",
  "latitude": "77",
  "longitude": "88",
  "postalCode": "776677",
  "country": {
    "id": 1
  },
  "language": "English",
  "parentTenantId": 334,
  "tenantId": 1690,
  "linkedSupervisorIds": [
    2260
  ],
  "linkedVillageIds": [
    1
  ],
  "customizedWorkflowIds": [],
  "clinicalWorkflowIds": []
}
```

#### **Sample Output** <a href="#healthfacilityupdate-v2-sampleoutput" id="healthfacilityupdate-v2-sampleoutput"></a>

| **Field Name** | **Type** | **Comments**                          |
| -------------- | -------- | ------------------------------------- |
| message        | String   | Health Facility updated Successfully. |
| status         | String   | Entity status                         |

```
{
  "message": "Health facility updated successfully.",
  "entity": null,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
