---
title: "Update a Shift Rate"
method: PATCH
path: "/time_tracking/shift_rates/{external_id}"
tags: ["timeTracking"]
---

# Update a Shift Rate

`PATCH /time_tracking/shift_rates/{external_id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/time_tracking/shift_rates/{external_id}`
- Auth: HTTP bearer

Changes the details of an existing shift rate. Use it to adjust a rate before attaching it to any shift, since a rate cannot be updated while any non-deleted shift uses it.

 **Token scopes**: `time-tracking:write`

## Path parameters

- `external_id` string, required

## Request body

- object
  - `data` TimeTrackingShiftRatesExternalIdPatchRequestBodyContentApplicationJsonSchemaData, required
    - `name` string: The updated name of the shift rate.
    - `type` 'MULTIPLIER_PERCENTAGE' | 'PER_HOUR_FLAT_RATE' | 'PER_UNIT_FLAT_RATE': The updated type of shift rate.
    - `value` number, double: The updated value of the shift rate.

## Response `200`

Shift rate updated successfully

- TimeTrackingUpdateTimeTrackingShiftRateByExternalIdResponse200: Shift rate policy response
  - `data` TimeTrackingShiftRatesExternalIdPatchResponsesContentApplicationJsonSchemaData, required
    - `name` string, required: Name of the shift rate policy
    - `type` 'MULTIPLIER_PERCENTAGE' | 'PER_HOUR_FLAT_RATE' | 'PER_UNIT_FLAT_RATE': Type of the shift rate
    - `value` number, double: The value of the shift rate (supports up to 2 decimal places)
    - `created_at` string, date-time, required: Date when the shift rate was created
    - `updated_at` string, date-time, required: Date when the shift rate was last updated
    - `external_id` string, required: ID specified by the client for uniquely identifying shift rate across organization

## Other responses

- `400`: Invalid request payload
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

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