Magidoc

insertTimeCategory
Mutation

Creates a time category (billable by default) for classifying time entries. With projectId, it is also added to that project's category list when the project restricts categories.

Access: workspace members (external users excluded); admins only when the workspace restricts time category management.

Arguments

#

_id

ID !
Non-null

name

Non-null

workspaceId

ID !
Non-null

projectId

billable

timeOff

Mark as a time-off (PTO) category. Cannot be combined with billable: true.

Response

#

Returns TimeCategory !.

Example

#