Magidoc

updateTimeEntry
Mutation

Overwrites the actual-time value (seconds) of an existing TimeEntry. Pass the TimeEntry id and the new seconds; the previous value is replaced, not accumulated, and seconds: 0 keeps the entry with a zero value rather than deleting it. This mutation edits the actual track only — use updateTimeEntryPlanned for the planned track.

Without userId the entry's parent row must belong to the calling user. Pass userId to edit another user's entry; the caller must be that user (with view access to the Todo on a Todo row), someone with update permission on the Project (Project Admin, Stack Admin, or Workspace Admin) on a Todo or Project row, or an admin of the organization on a Non-Project Activity row. Returns the updated TimeEntry.

Arguments

#

id

seconds

userEmail

Email address of the timesheet owner, instead of userId. With an organization access token it must belong to a member of the token's organization.

userId

Timesheet owner.

Response

#

Returns TimeEntry .

Example

#