---
title: "Update Allocation"
method: PUT
path: "/allocations/{allocation_id}"
tags: ["Time Off"]
---

# Update Allocation

`PUT /allocations/{allocation_id}`

Update a time-off allocation's amount or period.

## Path parameters

- `allocation_id` number, required

## Request body

- TimeOffAllocationRequest
  - `startDate` string
  - `endDate` string
  - `contractStartDate` string
  - `users` number[]
  - `timeOffType` number
  - `days` number
  - `daysCarried` number
  - `accrualFrequency` 'daily' | 'immediately'
  - `restrictOverAllocation` boolean
  - `completed` boolean
  - `notes` string

## Response `200`

OK

- TimeOffAllocation
  - `id` number
  - `startDate` string
  - `endDate` string
  - `contractStartDate` string
  - `user` number
  - `timeOffType` number
  - `days` number
  - `daysCarried` number
  - `daysAllocated` number
  - `daysUsed` number
  - `accrualFrequency` 'daily' | 'immediately'
  - `restrictOverAllocation` boolean
  - `completed` boolean
  - `notes` string
  - `createdBy` number
  - `createdAt` string

## Other responses

- `401` — Unauthorized

---

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