v1

latestOpenAPI 3.1.0Apache 2.02026-07-22160175414.0 KB
Workflow

Cancel a timesheet

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.

post/timmi-timesheet/api/timesheets/{id}/cancel

Request body

{"stackTrail":"paths:/timmi-timesheet/api/timesheets/{id}/cancel:post:requestBody:content:application/json:schema","oasType":"schema","type":"unknown"}

Response

OK

idinteger

Unique id of the WorkflowItem.

exceptionMessagestring

Any human readable error message.

startsOnstring date

The Timesheet the WorkflowItem is related on starting date (included).

endsOnstring date

The Timesheet the WorkflowItem is related on ending date (excluded).

expectedNextActorobject

A Directory 'User'. See API reference for up-to-date attributes.

statusstring
  • "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.