Magidoc

getTimeCategories
Query

List workspace time categories (e.g. Capex, Opex). Match user-mentioned names against the returned name field client-side. Pass projectId when categories are project-scoped so project-specific categories are included. Categories with timeOff: true are PTO; their hours report as leave, not worked time.

Arguments

#

workspaceId

ID !
Non-null

Workspace ID

projectId

Optional project ID to include project-scoped categories

specificIds = []

[ID !]

Fetch only these category IDs when already known

includeSubmitted

onlyBillable

Response

#

Returns [TimeCategory !]!.

Example

#