Ask QHR to support a device
/attendance_device_support_requestsattendance_device/manageRequires feature attendance_deviceNot available in Claudeattendance_device_support_requests.createSends the QHR team a request to support a device: one that is not in attendance_devices.catalogue, or one that will not connect. Answers with the request and its reference (e.g. DEV-1042). The team works through submitted, reviewed, in_progress and then done or rejected, and replies by email.
When to use: when the company's device is missing from the catalogue, or registration did not lead to a connection.
Prerequisites: none. failure_context.attendance_device_id can name a device from attendance_devices.list; attachment_ids are ids of documents already uploaded to the company in QHR (ids that are not the company's are ignored).
Side effects: the request joins the QHR support queue, and a confirmation email goes to contact_email (the token owner's email when omitted). Not offered to Claude: it contacts the QHR team on the company's behalf.
Not available in Claude yet.
Before you call this
You will need ids that come from these operations:
failure_context.attendance_device_idattendance_devices.list— List attendance devices
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Request body
application/json
| Field | Type | Description |
|---|---|---|
support_requestRequired | object | The device and how to reach you. |
support_request.manufacturerRequired | string | Manufacturer, as printed on the device. |
support_request.modelRequired | string | Model. |
support_request.firmware | string | Firmware version, if known. |
support_request.existing_software | string | Software used with the device today. |
support_request.devices_count | integer | How many such devices (1 or more). min 1 |
support_request.locations_count | integer | Across how many locations (1 or more). min 1 |
support_request.contact_email | string (email) | Where QHR should reply; the token owner's email when omitted. |
support_request.notes | string | Anything else the team should know. |
support_request.attachment_ids | array<integer> | Ids of documents already uploaded to the company (photos of the device label, manuals). |
support_request.failure_context | object | Where setup failed, if it did. Other keys are dropped. |
support_request.failure_context.attendance_device_id | integer | The registered device, from attendance_devices.list. |
support_request.failure_context.stage | string | Setup stage reached, e.g. awaiting_connection. |
support_request.failure_context.manufacturer_key | string | Catalogue manufacturer key tried. |
support_request.failure_context.model_key | string | Catalogue model key tried. |
support_request.failure_context.model_name | string | Model name typed for other. |
support_request.failure_context.firmware_key | string | Catalogue firmware key tried. |
support_request.failure_context.firmware_name | string | Firmware name typed for other. |
support_request.failure_context.serial_number | string | Device serial number. |
Response
201 The new request.
| Field | Type | Description |
|---|---|---|
id | integer | Request id. |
reference | string | Reference to quote to QHR, e.g. DEV-1042. |
manufacturer | string | Manufacturer, as typed. |
model | string | Model, as typed. |
status | string | submitted, reviewed, in_progress, done or rejected.Allowed values: submitted, reviewed, in_progress, done, rejected |
contact_email | string | Where QHR replies. |
created_at | string (date-time) | When it was raised, UTC. |
updated_at | string (date-time) | Last change, UTC. |
last_message_at | string (date-time) | When QHR last wrote, UTC; null before any reply. |
Errors
| HTTP | Code | Meaning | How to fix |
|---|---|---|---|
| 400 | bad_request | A parameter is missing or malformed. | Check the parameters against this operation's documentation. |
| 401 | token_missing | No Authorization: Bearer … header, or it is malformed. | Send Authorization: Bearer qhr_… with the full token. |
| 401 | token_invalid | The token is unknown or wrong, or its owner's account is locked. | Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations. |
| 401 | token_expired | The token is past its expiry date. | Create a new token. |
| 401 | token_revoked | The token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens). | Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first. |
| 401 | tenant_inactive | The company account is suspended. | Contact QHR support. |
| 403 | token_read_only | This token can only read; the operation makes changes. | Use a token created with "Allow changes". |
| 403 | forbidden | The token owner's role lacks the permission this operation needs. | Ask an admin to grant the permission shown on this operation (x-permission). |
| 403 | employee_inactive | The token owner's employee record is not active. | HR must reactivate the employee record. |
| 403 | tenant_access_revoked | The token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead. | The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support. |
| 422 | validation_failed | Some fields are missing or not valid. | Fix the fields named in error (and errors when present), then send again. |
entitlement_blocked · 429 rate_limited · 500 internal_error