curl --request POST \
--url https://{host}/timmi-timesheet/api/timesheets/{id}/approve \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"transfers": [
{
"transferAuthorizationId": 2,
"amount": {
"iso": "PT7H30M",
"unit": "day"
},
"comment": "<string>"
}
]
}
'[
{
"id": 123,
"exceptionMessage": "<string>",
"startsOn": "2023-12-25",
"endsOn": "2023-12-25",
"expectedNextActor": {},
"status": "<string>"
}
]Approve once the timesheet referenced by its ID, and any timesheets before it pending approval belonging to the same timesheet owner.
For example, if timesheets of ownerid=123 of April 2024 (id=1), May 2024 (id=2), and June 2024 (id=3) are pending approval, and you approve the timesheet id=2 : both April 2024 and May 2024 timesheets will be approved once, and the June 2024 timesheet will be untouched.
Approbation can only be performed with a pending status, and it only performs a single approbation step for each timesheet. If a timesheet require several manual approbation steps, the endpoint must be called several times.
If you want to edit the original Transfer, send a new Transfer with the new duration.
To cancel a transfer, send a Transfer with a duration of PT0S. To keep the same
original transfer, send an empty array.
curl --request POST \
--url https://{host}/timmi-timesheet/api/timesheets/{id}/approve \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"transfers": [
{
"transferAuthorizationId": 2,
"amount": {
"iso": "PT7H30M",
"unit": "day"
},
"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
If you want to edit the original Transfer, send a new Transfer with the new duration. To cancel a transfer, send a Transfer with a duration of PT0S. To keep the same original transfer, send an empty array.
Show child attributes
OK
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?