---
title: "Update TOIL"
method: PUT
path: "/api/users/{userId}/allowances/{year}/toil/{id}"
tags: ["Allowances"]
---

# Update TOIL

`PUT /api/users/{userId}/allowances/{year}/toil/{id}`

## Request

- Base URL: `https://app.timetastic.co.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://app.timetastic.co.uk/api/users/{userId}/allowances/{year}/toil/{id}`
- Auth: none declared

Update a TOIL for a user for a year

## Path parameters

- `userId` integer, required
- `year` integer, required
- `id` integer, required

## Request body

- TimetasticWebControllersAPIUserAllowanceControllerUpsertToilRequest
  - `amount` number, double, required
  - `description` string, nullable

## Response `200`

The TOIL was successfully updated

- integer

## Other responses

- `400`: Invalid input data or validation error
- `403`: You don't have permission to manage this TOIL
- `404`: The requested resource cannot be found

---

[API](https://skmtc.dev/timetastic/apis/timetastic-api.md) · [All operations](https://skmtc.dev/timetastic/apis/timetastic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/timetastic/apis/timetastic-api/revisions/709ccb0412c3?raw)
