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>"
}Invalidate a timesheet with a mandatory comment.
Can only be performed on a timesheet with an approved status.
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>"
}API key. Value must be formatted like so: lucca application={api_key}.
timesheet id
A comment to explain why this timesheet is invalidated.
OK
A WorkflowItem is an individual workflow action performed by a user.
The expectedNextActor object is a User. See API reference.
Unique id of the WorkflowItem.
Any human readable error message.
The Timesheet the WorkflowItem is related on starting date (included).
yyyy-MM-ddThe Timesheet the WorkflowItem is related on ending date (excluded).
yyyy-MM-ddA Directory 'User'. See API reference for up-to-date attributes.
Was this page helpful?