POST
/
timmi-timesheet
/
api
/
timesheets
/
{id}
/
invalidate
Invalidate a timesheet
curl --request POST \
  --url https://{host}/timmi-timesheet/api/timesheets/{id}/invalidate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "comment": "<string>"
}'
{
  "id": 123,
  "exceptionMessage": "<string>",
  "startsOn": "2023-12-25",
  "endsOn": "2023-12-25",
  "expectedNextActor": {},
  "status": "<string>"
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Path Parameters

id
integer
required

timesheet id

Body

comment
string
required

A comment to explain why this timesheet is invalidated.

Response

OK

A WorkflowItem is an individual workflow action performed by a user.

The expectedNextActor object is a User. See API reference.

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.