curl --request POST \
--url https://{host}/timmi-timesheet/api/timesheets/{id}/deny \
--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>"
}
]Deny a timesheet with a mandatory comment.
Can only be performed on a timesheet with a pending status.
curl --request POST \
--url https://{host}/timmi-timesheet/api/timesheets/{id}/deny \
--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 denied.
1OK
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?