> ## Documentation Index
> Fetch the complete documentation index at: https://docs.series.hr/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Request

> Update the status of a time-off request

Update the status of an existing time-off request. This is typically used by managers to approve (`accepted`) or reject (`denied`) a request.

## Request

```bash theme={null}
curl -X PATCH "https://api.series.hr/time-off/update/req-12345" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "Status": "accepted",
    "ManagerNote": "Enjoy your trip!"
  }'
```

## Parameters

<ParamField path="requestId" type="string" required>
  The unique ID of the time-off request to update.
</ParamField>

<ParamField body="Status" type="string" required>
  The new status of the request (`pending`, `accepted`, `ongoing`, `denied`, `cancelled`, `completed`).
</ParamField>

<ParamField body="ManagerNote" type="string">
  An optional note from the manager handling the request.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "RequestId": "req-12345",
      "Status": "accepted"
    }
  }
  ```
</ResponseField>
