# Update Call Status

Use the `PATCH` `/calls/{call_id}/update/` endpoint to update the status of a call. This helps the backend know whether the call was answered, declined, or has another status. \
**Important:** This endpoint should not be used to end the call.

**Parameters**

* **data** *(body)*: The request body object that contains the call status.
  * **status** (string): The status of the call. Possible values include:
    * `answered`
    * `declined`
    * `ended`
    * `pending`
* **call\_id** *(path)*: The unique identifier of the call that you want to update.

**Example Request Body**

```json
{
  "status": "answered"
}
```

**Responses**

* **200 OK**: The call status was successfully updated.

**Example Response**

```json
{
  "status": "answered"
}
```
