---
title: "Update time-off request"
method: PATCH
path: "/time_offs/{time_off_id}"
tags: ["timeOff"]
---

# Update time-off request

`PATCH /time_offs/{time_off_id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/time_offs/{time_off_id}`
- Auth: HTTP bearer

Corrects details of an existing time-off request, such as its dates, amount, reason, or time-off type, without requiring the worker to cancel and resubmit it. Applies a partial update identified by time_off_id; only fields included in the request body are modified.

 **Token scopes**: `time-off:write`, `worker:write`

## Path parameters

- `time_off_id` string, uuid, required

## Request body

- object
  - `data` TimeOffsTimeOffIdPatchRequestBodyContentApplicationJsonSchemaData: Time off update request data
    - `dates` TimeOffsTimeOffIdPatchRequestBodyContentApplicationJsonSchemaDataDatesItems[]: The dates breakdown for the time off request.
      - `date` union, required: An specific date in the time-off request
        - string, date
        - string, date-time
      - `hours` string: The amount taken in hours during this specific date. It can not exceed the maximum allowed hours for the date.
      - `amount` string: The amount of time off requested for the date. It must be in the same time unit as in the total amount for the time off request.
      - `day_type` 'HALF_DAY' | 'FULL_DAY' | 'PERCENTAGE' | 'HOURLY': The type of day for the time off request. All dates must follow the same type.
    - `reason` string, nullable: Reason for taking time off. This is complementary information for the time-off description. Useful to provide sub categories for the same policy.
    - `is_paid` boolean: Whether the time off is paid or unpaid. By default it follows the policy configuration.
    - `end_date` union, required: End date of the time off request. This is the date when the time off ends. For example, if you take 2 days off, this will be the end date of the second day.
      - string, date
      - string, date-time
    - `policy_id` string, uuid: The time off policy id. Can be used in place of time_off_type_id
    - `start_date` union, required: Start date of the time off request. This is the date when the time off starts. For example, if you take 2 days off, this will be the start date of the first day.
      - string, date
      - string, date-time
    - `description` string, nullable: Description of the time off request. Some policies require that a description is provided.
    - `contract_oid` string, nullable: Contract id. This is the id of the contract associated with the time off request.
    - `event_details` TimeOffsTimeOffIdPatchRequestBodyContentApplicationJsonSchemaDataEventDetails: Details of the event associated with the time off request. Required for event based policies such as parental leave.
      - `birth_date` string, date, required: The birth date of the child. This is used for parental leave requests.
      - `adoption_date` string, date: The date of adoption. This is used for parental leave requests.
      - `is_confirmation` boolean: Whether the event date are a confirmed or not. This is used for parental leave requests when either the birth date or adoption date are not estimated anymore but actually confirmed.
      - `was_premature_birth` boolean, required: Whether the birth was premature or not. This is used for parental leave requests.
      - `had_multiple_children` boolean, required: Whether the birth was multiple or not. This is used for parental leave requests.
    - `deduction_amount` string, nullable: Deduction amount. Available for independent contractor's policies
    - `time_off_type_id` string, uuid: The time off type id. Required when policy_id is not provided
    - `time_off_event_id` string, uuid: The time off event id. This is used to link the time off request to an event.
    - `custom_field_values` TimeOffsTimeOffIdPatchRequestBodyContentApplicationJsonSchemaDataCustomFieldValuesItems[], nullable: Answers to the custom fields the request policy declares, addressed by custom field key (`field_key`) or, for existing clients, by custom field id (`field_id`). Each answer names a different field.
      - `value` union, required: The submitted value for the custom field. Accepts a string, number, or boolean — always stored as text. `null` means "no answer for this field" and is rejected today, since no field supports a null answer yet.
        - string
        - number, double
        - boolean
      - `field_id` string, uuid: The id of the custom field this value answers, kept for the clients that already send it. An id from an earlier version of the policy answers the current field with the same key. Send exactly one of `field_key` and `field_id` in each answer.
      - `field_key` string: The key of the custom field this value answers. The key stays the same when the policy changes, so prefer it to `field_id`. Send exactly one of `field_key` and `field_id` in each answer.
    - `time_off_percentage` number, double, nullable: This is the percentage of time off taken. This is used when the time off request is a percentage.
    - `recipient_profile_id` string, uuid, required: The hris profile id of the recipient
    - `other_type_description` string, nullable: Description of the time off type. This is used when the policy is OTHER.

## Response `200`

Time off updated

- TimeOffUpdateTimeOffRequestResponse200: Time off data to be updated
  - `time_off` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOff, required: Used to return the updated time off request after modification. Contains all the time off details including status, dates, amounts, and associated metadata.
    - `amount` string, required: Amount of time off taken. This is the total amount of time off taken. For example, if you take 2 days off, this will be 2. If you take 1 day off, this will be 1.
    - `reason` string: Reason for taking time off. This is complementary information for the time-off description. Useful to provide sub categories for the same policy.
    - `status` 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'USED' | 'CANCELED' | 'DELETED': Status of the time off request. Can be REQUESTED, APPROVED, REJECTED, USED or CANCELED.
    - `is_paid` boolean, required: Whether the time off is paid or unpaid.
    - `end_date` string, date, required: End date of the time off request. This is the date when the time off ends. For example, if you take 2 days off, this will be the end date of the second day.
    - `created_at` string, date-time, required: This is the date when the time off request was created in the database.
    - `deleted_at` string, date-time, nullable: Time off deletion date. Present only when the time-off is soft-deleted and include_deleted_time_offs was requested.
    - `start_date` string, date, required: Start date of the time off request. This is the date when the time off starts. For example, if you take 2 days off, this will be the start date of the first day.
    - `updated_at` string, date-time, required: This is the date when the time off request was last updated in the database.
    - `approved_at` string, date-time, nullable: This is the date when the time off request was approved. This will be null if the time off request is not approved yet.
    - `attachments` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffAttachmentsItems[]: List of attachments associated with the time off request.
      - `id` string, uuid, required: Attachment id
      - `filename` string, required: Filename of the attachment
      - `created_at` string, date-time, required: This is the date when the attachment was created in the database.
      - `updated_at` string, date-time, required: This is the date when the attachment was last updated in the database.
    - `canceled_at` string, date-time, nullable: Time off cancellation date
    - `description` string: Description of the time off request. Some policies require that a description is provided.
    - `contract_oid` string: Contract id. This is the id of the contract associated with the time off request.
    - `requested_at` string, date, required: This is the date when the time off request was made.
    - `half_end_date` boolean, required: Whether the end date is a half day or not.
    - `time_off_type` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffType: The type of time off taken.
      - `id` string, uuid, required: Time off type id.
      - `name` string, required: Time off type name. Basically the reason or category of time-off taken. For SICK leave, it can be doctor appointment, surgery etc.
      - `policy` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffTypePolicy: The policy associated with the time off type.
        - `id` string, uuid, required: Policy id
        - `name` string, required: The custom name given to policy during policy creation.
        - `policy_type` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffTypePolicyPolicyType, required
          - `id` string, uuid, required: Policy type id
          - `name` string, required: Depicts the type of policy, like VACATION, SICK etc
    - `time_off_event` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffEvent
      - `id` string, uuid: The time off event id. This is used to link the time off request to an event.
      - `type` 'PARENTAL_LEAVE': The type of the time off event.
      - `policy_id` string, uuid: The policy id associated with the time off event. Same as the policy_id in the time off type.
      - `created_at` string, date-time: The date when the time off event was created in the database.
      - `updated_at` string, date-time: The date when the time off event was last updated in the database.
      - `event_details` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffEventEventDetails: Details of the event associated with the time off request. Required for event based policies such as parental leave.
        - `birth_date` string, date: The birth date of the child. This is used for parental leave requests.
        - `adoption_date` string, date: The date of adoption. This is used for parental leave requests.
        - `was_premature_birth` boolean, required: Whether the birth was premature or not. This is used for parental leave requests.
        - `estimated_birth_date` string, date: The estimated birth date of the child. Birth is estimated when the birth date has not been confirmed yet.
        - `had_multiple_children` boolean, required: Whether the birth was multiple or not. This is used for parental leave requests.
        - `estimated_adoption_date` string, date: The estimated adoption date of the child. Birth is estimated when the adoption date has not been confirmed yet.
      - `hris_profile_id` string, uuid: The HRIS profile id of the worker associated with the time off event. Same as the hris_profile_id in the recipient_profile.
      - `time_off_type_id` string, uuid: The time off type id associated with the time off event. Same as the time_off_type_id in the time off request.
    - `half_start_date` boolean, required: Whether the start date is a half day or not.
    - `deduction_amount` string: Deduction amount. Available for independent contractor's policies
    - `entitlement_unit` 'HOUR' | 'BUSINESS_DAY' | 'CALENDAR_DAY' | 'WEEK' | 'MONTH' | 'YEAR', required: The unit in which the time off usage and entitlement are calculated.
    - `time_off_dailies` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffTimeOffDailiesItems[]: Used to break down the time off request into daily records. Each entry represents a single day within the time off period, allowing for detailed tracking of working days, non-working days, and holidays included in the request.
      - `id` string, uuid, required: Time off daily id
      - `date` string, date, required: Date of the time off daily. This is the date when the time off was taken.
      - `type` 'WORKING_DAY' | 'NON_WORKING_DAY' | 'HOLIDAY' | 'FORFAIT_HOUR_DAY', required: Type of the time off daily. Can be WORKING_DAY, NON_WORKING_DAY, HOLIDAY or FORFAIT_HOUR_DAY.
      - `amount` string, required: Amount of time off taken in this specific date.
      - `created_at` string, date-time, required: This is the date when the time off daily was created in the database.
      - `updated_at` string, date-time, required: This is the date when the time off daily was last updated in the database.
      - `description` string, nullable: Description of the time off daily. When it is a HOLIDAY this is the holiday name.
      - `time_off_id` string, uuid, required: Time off id. This is the id of the time off request associated with the time off daily.
    - `time_off_type_id` string, uuid, required: Time off type id. This is the id of the time off type associated with the time off request.
    - `recipient_profile` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffRecipientProfile: The time off profile of the recipient of the time off request. Must be a worker profile.
      - `hris_profile_id` string, uuid, required: The worker HRIS profile id in the given organization.
      - `organization_id` string, uuid, required: Id of the organization the profile belongs to.
    - `requester_profile` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffRequesterProfile: The time off profile of the requester of the time off request. Can be either a client or worker profile.
      - `hris_profile_id` string, uuid: The worker HRIS profile id in the given organization. Available when the requester is a worker.
      - `organization_id` string, uuid, required: Id of the organization the profile belongs to.
      - `client_profile_id` string, uuid: Id of the client profile. Available when the requester is a client.
    - `custom_field_values` TimeOffsTimeOffIdPatchResponsesContentApplicationJsonSchemaTimeOffCustomFieldValuesItems[]: Answers to the custom fields the request policy declares. Omitted when the policy declares none.
      - `value` string, nullable, required: The submitted value for the custom field, serialized as text. When no value is provided, this will be null.
      - `field_id` string, uuid, required: The id of the custom field this value answers.
    - `time_off_percentage` string: Used to specify the percentage of time off taken relative to full-time employment. This value ranges from 0 to 1, where 1 represents full-time (100%) and 0.5 represents part-time (50%). This is useful for part-time workers or when taking partial time off.
    - `is_end_date_estimated` boolean: Used to indicate if the end date is an estimate rather than a confirmed date. This is particularly important for event-based policies such as Parental Leave, where the actual end date may depend on the actual birth or adoption date, which may not be known at the time of request submission.
    - `other_type_description` string: Used to provide a custom description when the time off type is categorized as 'OTHER'. This allows users to specify the nature of time off that doesn't fit into standard categories, providing flexibility for unique or organization-specific time off types.

## Other responses

- `400`: Bad Request
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

## Changes

- **2026-12-01** `b7b456c45a40`: 2 info
  - added the new optional request property `data/custom_field_values/items/field_key`
  - the request property `data/custom_field_values/items/field_id` became optional

[Operation history](https://skmtc.dev/deel/apis/hris-endpoints/changes/time_offs/:time_off_id/patch.md)

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
