Magidoc

createTimeEntries
Mutation

Creates or updates workspace members' unsubmitted time entries. Workspace admins may target multiple members in one batch, including former (removed) members for historical imports; other callers may target only themselves. API keys act as their owning user and inherit that user's permissions, so admin-owned keys have the same cross-user access. Entries are grouped into weekly timesheets and upserted by user, container, category, and date. Submitted, approved, locked, unauthorized-user, and never-member writes are rejected. Use submitMyTimesheetsForApproval and updateTimesheetsStatus for status transitions.

Arguments

#

workspaceId

ID !
Non-null

Target workspace ID.

entries

Non-null

One or more time entries to create or update. Workspace admins may target multiple members in one batch.

status

Timesheet status to apply. Only UNSUBMITTED is allowed; omit to default to UNSUBMITTED.

Response

#

Returns CreateTimeEntriesResult !.

Example

#