---
title: "Update Time Off"
method: PATCH
path: "/v2/time_off/{time_off_id}"
tags: ["Time Off"]
---

# Update Time Off

`PATCH /v2/time_off/{time_off_id}`

## Path parameters

- `time_off_id` integer, required

## Headers

- `x-api-version` string — An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `user_id` integer
  - `from_date` string
  - `to_date` string
  - `partial` boolean
  - `partial_from` string, time, nullable
  - `partial_to` string, time, nullable
  - `comments` string
  - `status` integer
  - `status_action_message` string
  - `category` string
  - `hours` object[]
    - `date` string, required
    - `num_hours` number, required

## Response `200`

The updated time off

- object
  - `id` integer, required
  - `user_id` integer, required
  - `company_id` integer, required
  - `from_date` string, required
  - `to_date` string, required
  - `partial` boolean, required
  - `partial_from` string, time, nullable, required
  - `partial_to` string, time, nullable, required
  - `comments` string, required
  - `status` integer, required
  - `status_action_user_id` integer, nullable, required
  - `status_action_message` string, required
  - `category` string, required
  - `created` string, required
  - `amount_of_hours` number, required
  - `hours` object[], required
    - `date` string, required
    - `hours` number, required

---

[API](https://skmtc.net/7shifts/apis/7shifts-api.md) · [All operations](https://skmtc.net/7shifts/apis/7shifts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/7shifts/7shifts-api/revisions/96a02ef888ab/schema)
