Magidoc

createTimeItems
Mutation

Bulk variant of createTimeItem: creates several Timesheet rows for the calling user in one call. Pass projectIds for Project-level rows or todoIds for Task-level rows; if both lists are supplied, only projectIds is processed. date places every created row in the same timesheet week.

Rows are created only for Projects or Todos the caller has an Assignment on — other ids are silently skipped, not errors. If a matching row already exists for the same target and date it is reused (and restored if soft-deleted) instead of duplicated. tags applies the given organization reporting labels to every created row.

Returns the list of created or reused TimeItem records (an empty list when neither id list is given). Day-cell hours are not created here; call createTimeEntry per date afterwards.

Arguments

#

date

projectIds

[Int ]

tags

todoIds

[Int ]

Response

#

Returns [TimeItem ].

Example

#