Skip to main content
PUT
TimeEntries update service

Headers

Authorization
string
required

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

Query Parameters

startsOn
string<date>
required

First day (included) of the period you want to update with provided TimeEntries.

Pattern: yyyy-MM-dd
endsOn
string<date>
required

Last day (included) of the period you want to update with provided TimeEntries.

Pattern: yyyy-MM-dd
ownerId
integer
required

Unique identifier of the TimeEntries owner.

Body

application/json
owner
object
required
startsAt
string<date-time>
required

The timeEntry start date and time. Please do NOT send any offset/timezone information ("Z", "+01:00", etc...).

Example:

"2023-10-12T12:00:00"

unit
enum<string>
required

Unit in which the TimeEntry has been entered.

  • day: share a of a 24-hour day (e.g. "1/2 day")
  • duration: number of hours (e.g. "8h15min")
  • time: accurate time of a day (e.g. "23:45:00")
Available options:
day,
duration,
time
duration
object
required
axisSections
object[] | null

The activities this TimeEntry should be associated with. When not in activity mode, send an empty array, or do not serialize this property.

timeType
object | null

Optional reference of a configured Time Type. To use only if the timesheet is set up to use Time Types. Null otherwise.

timeSource
enum<string>
default:manual

Attribute used to identify last modification source :

  • manual : Manually created or edited (default).
  • import : Imported from external sources. Is read-only on Lucca Timesheet user interfaces only if Timesheet regulation is in following modes : attendance schedule with clock-in clock-out, and activity-schedule
  • timer : Entered with Lucca Timesheet clock-in clock-out tool.
Available options:
manual,
import,
timer
comment
string | null

A comment on the TimeEntry, visible on Lucca Timesheet user interface.

Response

OK