# Update

| **API URL**     | {{url}}/admin-service/program/update |
| --------------- | ------------------------------------ |
| **Method**      | PATCH                                |
| **Description** | Program update                       |

#### **Input** <a href="#program-update-input" id="program-update-input"></a>

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| name           | String   | Yes           | Finnas      |
| tenantId       | String   | Yes           | 290         |
| sites          | Array    | Yes           | \[14,78]    |
| country        | Number   | Yes           | 3           |
| deletedSites   | Array    | No            | \[78]       |
| active         | String   | Yes           | true        |

#### **Sample Input:** <a href="#program-update-sampleinput" id="program-update-sampleinput"></a>

{\
"id":41,\
"sites":\[14,78],\
"tenantId":290,\
"country":{"id":4},\
"deletedSites":\[78],\
"active":true\
}

#### **Sample Output:** <a href="#program-update-sampleoutput" id="program-update-sampleoutput"></a>

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