Magidoc

createTimeEntries
Mutation

Create or update time entries in bulk.

Timesheets are automatically created per ISO week for each unique (user, container, category) combination. If a timesheet already exists for that week it is reused and its status is updated to the requested value.

Entries are upserted: calling this mutation again with the same user / container / category / date updates the existing entry instead of creating a duplicate.

Authentication: Supports both JWT and API-key (api_key or api-key header).

Access: The caller must have access to the target workspace.

Arguments

#

workspaceId

ID !
Non-null

Target workspace ID.

entries

Non-null

One or more time entries to create or update.

status

Timesheet status to apply. Defaults to APPROVED, which bypasses the approval workflow.

Response

#

Returns CreateTimeEntriesResult !.

Example

#