createTimeItem Mutation
Creates a TimeItem — one row on a user's weekly OMP Timesheet,
scoped to a single target. Select the target with the arguments:
projectId for a Project-level row, todoId for a Task-level
row, or organizationId plus nonProjectActivity (a free-text
label) for a Non-Project Activity row. date places the row in
its timesheet week (the Timesheet groups rows Sunday through
Saturday). The row itself carries no hours — populate day cells
afterwards with createTimeEntry, or createTimeEntryPlanned
for planned effort.
By default the row is created on the calling user's own
timesheet; for the caller's own Todo rows, an existing
soft-deleted row for the same Todo and date is restored instead
of duplicated. Pass userId to create a row on another user's
timesheet, for a Todo, a Project or a Non-Project Activity; 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.
tags sets organization-managed reporting labels (for example
"Billable") on the row; new tag names are also added to the
organization's tag list. Returns the created TimeItem. Passing
none of projectId, todoId, or organizationId fails with
not_allowed; validation failures (such as a duplicate
Project-level row for the same date and tags) return a list of
"field message" strings. Time tracking is an Enterprise-plan
feature.
Arguments
#
date
organizationId
projectId
tags
todoId
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.
Response
#
Returns TimeItem .
Example
#
createTimeEntryPlanned
createTimeItems
