---
title: "Update a timeoff"
method: PUT
path: "/hris/{connection_id}/timeoff/{id}"
tags: ["hris", "timeoff"]
---

# Update a timeoff

`PUT /hris/{connection_id}/timeoff/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- HrisTimeoff
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `user_id` string, required
  - `company_id` string
  - `start_at` string, date-time
  - `end_at` string, date-time
  - `is_paid` boolean
  - `status` 'APPROVED' | 'PENDING' | 'DENIED' | 'CANCELLED'
  - `approver_user_id` string
  - `approved_at` string, date-time
  - `comments` string
  - `reason` string
  - `type` 'VACATION' | 'SICK' | 'HOLIDAY' | 'BEREAVEMENT' | 'PARENTAL' | 'UNPAID' | 'IN_LIEU' | 'OTHER'
  - `duration` number
  - `duration_type` 'HOUR' | 'DAY'
  - `raw` object

## Response `200`

Successful

- HrisTimeoff
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `user_id` string, required
  - `company_id` string
  - `start_at` string, date-time
  - `end_at` string, date-time
  - `is_paid` boolean
  - `status` 'APPROVED' | 'PENDING' | 'DENIED' | 'CANCELLED'
  - `approver_user_id` string
  - `approved_at` string, date-time
  - `comments` string
  - `reason` string
  - `type` 'VACATION' | 'SICK' | 'HOLIDAY' | 'BEREAVEMENT' | 'PARENTAL' | 'UNPAID' | 'IN_LIEU' | 'OTHER'
  - `duration` number
  - `duration_type` 'HOUR' | 'DAY'
  - `raw` object

---

[API](https://skmtc.net/unified/apis/unified-to-api.md) · [All operations](https://skmtc.net/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unified/unified-to-api/versions/1f72720916e4/schema)
