---
title: "Cancel a timesheet"
method: POST
path: "/timmi-timesheet/api/timesheets/{id}/cancel"
tags: ["Workflow"]
---

# Cancel a timesheet

`POST /timmi-timesheet/api/timesheets/{id}/cancel`

Cancel a timesheet referenced by its ID, and any timesheets after it pending approval belonging to the same timesheet owner.


Can only be performed by the author of the timesheet submit step, and while the timesheet is in a `pending` status.

## Request body

- unknown

## Response `200`

OK

- WorkflowItem[]
  - `id` integer — Unique id of the WorkflowItem.
  - `exceptionMessage` string — Any human readable error message.
  - `startsOn` string, date — The Timesheet the WorkflowItem is related on starting date (included).
  - `endsOn` string, date — The Timesheet the WorkflowItem is related on ending date (excluded).
  - `expectedNextActor` object — A Directory 'User'. See API reference for up-to-date attributes.
  - `status` string — - "success" for a succesfull workflow operation. - "error" if any error was met, and therefore an excetion message is set. - "noAction" if the workflow operation was not performed.

## Other responses

- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
