Work Types

Authentication: All endpoints require an Authorization: Bearer <access token> header.

Most endpoints require an X-Company-ID: <company_id> header to scope requests to a specific company. This is the recommended header for most API operations.

Some endpoints require an X-Location-ID: <location_id> header when the query doesn't accept a locationId parameter.

See Authentication for details on how to obtain and use these headers.

Query Work Types

GraphQL Query

query WorkTypes {
  workTypes {
    id
    name
    appliedFromId
  }
}

Example Variables

{}

Example Response

{
  "data": {
    "workTypes": [
      {
        "id": "49",
        "name": "PH - Standard - Standard",
        "appliedFromId": null
      },
      {
        "id": "114",
        "name": "Min Break",
        "appliedFromId": null
      }
    ]
  }
}