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

# Add TOIL

`POST /api/users/{userId}/allowances/{year}/toil`

## 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`
- Auth: none declared

Add a TOIL for a user for a year

## Path parameters

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

## Request body

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

## Response `200`

The TOIL was successfully created

- 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)
