POST
/
timmi-timesheet
/
api
/
timesheets
/
submit
Submit timesheets
curl --request POST \
  --url https://{host}/timmi-timesheet/api/timesheets/submit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ownerId": 90,
  "startsAt": "2024-05-06T00:00:00",
  "endsAt": "2024-05-13T00:00:00",
  "transfers": []
}'
[
  {
    "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}.

Body

application/json
ownerId
integer
required

Reference to the owner of submittable timesheets.

startsAt
string<date-time>
required

First day of the last timesheet to submit.

Example:

"2024-05-27T00:00:00"

endsAt
string<date-time>

Last day of the last timesheet to submit. Optional.

Example:

"2024-07-01T00:00:00"

transfers
Transfer v4 · object[]

Array of suggested transfer from one account to another.

Response

OK

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.