Magidoc

updateTimeItem
Mutation

Updates an existing Timesheet row. tags is the only mutable field: it replaces the row's organization reporting labels (new tag names are also added to the organization's tag list). The row's target, week, and owner cannot be changed — delete the row and create a new one instead. Day-cell hours are edited with updateTimeEntry or updateTimeEntryPlanned, not here.

Without userId the mutation targets the calling user's own row. Pass userId to edit a row on another user's timesheet; 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 TimeItem; unauthorized calls fail with not_allowed.

Arguments

#

id

tags

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; the caller's own when left out.

Response

#

Returns TimeItem .

Example

#