Employee Requirements

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 Employee Requirements

GraphQL Query

query EmployeeRequirement($employeeId: ID!) {
  employeeRequirements(employeeId: $employeeId) {
    id
    employee {
      id
      fullName
    }
    requirement {
      id
      name
      abbreviation
      expires
      evidence
    }
    name
    reference
    state
    expiresAt
    attachment {
      id
    }
  }
}

Example Variables

{
  "employeeId": "73544"
}

Example Response

{
  "data": {
    "employeeRequirements": [
      {
        "id": "7030",
        "employee": {
          "id": "73544",
          "fullName": "Alana Robertson"
        },
        "requirement": {
          "id": "40",
          "name": "Certificate",
          "abbreviation": "CERT",
          "expires": false,
          "evidence": true
        },
        "name": null,
        "reference": "QUT3423111231",
        "state": "QLD",
        "expiresAt": null,
        "attachment": {
          "id": "251780"
        }
      },
      {
        "id": "7031",
        "employee": {
          "id": "73544",
          "fullName": "Alana Robertson"
        },
        "requirement": {
          "id": "41",
          "name": "First Aid",
          "abbreviation": "AID",
          "expires": true,
          "evidence": false
        },
        "name": null,
        "reference": "AID00-1231123",
        "state": "QLD",
        "expiresAt": "2024-06-24",
        "attachment": null
      }
    ]
  }
}