timeEntryUpdate Mutation

Updates an existing time entry.

Input Argument

timeEntryUpdate accepts a single input argument, an input type, which contains the values it uses.

The fields inside input are:

clientMutationId (String)

A unique identifier for the client performing the mutation.

correction (Boolean)

Whether the time entry should be considered a correction for a time entry that was registered for a date that has already been locked.

customerId (ID)

Identifier of the organization for which the time was spent.

date (ISO8601Date)

The date on which the time was spent.

deleted (Boolean)

Automatically checked after the time entry has been deleted. The data of a deleted time entry that is older than 3 months can no longer be retrieved.

description (String)

A short description of the time spent. This field is available and required only when the Description required box is checked in the selected time allocation.

effortClassId (ID)

Identifier of the effort class that best reflects the type of effort for which time spent is being registered.

id (ID!)

The node ID of the record to update.

noteId (ID)

Identifier of the note the time entry is linked to.

organizationId (ID)

Identifier of the organization to which the person was linked when the time entry was created.

personId (ID)

Identifier of the person who spent the time.

serviceId (ID)

Identifier of the service for which the time was spent.

source (String)

An identifier for the client application submitting the resource or the name of an external system

sourceID (String)

The unique identifier of the resource in an external system

teamId (ID)

Identifier of the team the person of the time entry was a member of while the work was performed.

timeAllocationId (ID)

Identifier of the time allocation on which the time was spent. Only the time allocations that are linked to the person’s organization can be selected.

timeSpent (Int)

The number of minutes that was spent on the selected time allocation. The number of minutes is allowed to be negative only when the correction field is set to true.

Return Fields

clientMutationId (String)

A unique identifier for the client performing the mutation.

errors ([ValidationError!])

Errors encountered during the mutation.

timeEntry (TimeEntry)

Record after mutation.