QHR Developers

Ask QHR to support a device

POST/attendance_device_support_requests
Needs a read & write tokenConnect, edit and remove attendance devices attendance_device/manageRequires feature attendance_deviceNot available in Claudeattendance_device_support_requests.create

Sends 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:

Parameters

NameInTypeDescriptionExample
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Request body

application/json

FieldTypeDescription
support_requestRequiredobjectThe device and how to reach you.
support_request.manufacturerRequiredstringManufacturer, as printed on the device.
support_request.modelRequiredstringModel.
support_request.firmwarestringFirmware version, if known.
support_request.existing_softwarestringSoftware used with the device today.
support_request.devices_countintegerHow many such devices (1 or more).
min 1
support_request.locations_countintegerAcross how many locations (1 or more).
min 1
support_request.contact_emailstring (email)Where QHR should reply; the token owner's email when omitted.
support_request.notesstringAnything else the team should know.
support_request.attachment_idsarray<integer>Ids of documents already uploaded to the company (photos of the device label, manuals).
support_request.failure_contextobjectWhere setup failed, if it did. Other keys are dropped.
support_request.failure_context.attendance_device_idintegerThe registered device, from attendance_devices.list.
support_request.failure_context.stagestringSetup stage reached, e.g. awaiting_connection.
support_request.failure_context.manufacturer_keystringCatalogue manufacturer key tried.
support_request.failure_context.model_keystringCatalogue model key tried.
support_request.failure_context.model_namestringModel name typed for other.
support_request.failure_context.firmware_keystringCatalogue firmware key tried.
support_request.failure_context.firmware_namestringFirmware name typed for other.
support_request.failure_context.serial_numberstringDevice serial number.

Response

201 The new request.

FieldTypeDescription
idintegerRequest id.
referencestringReference to quote to QHR, e.g. DEV-1042.
manufacturerstringManufacturer, as typed.
modelstringModel, as typed.
statusstringsubmitted, reviewed, in_progress, done or rejected.
Allowed values: submitted, reviewed, in_progress, done, rejected
contact_emailstringWhere QHR replies.
created_atstring (date-time)When it was raised, UTC.
updated_atstring (date-time)Last change, UTC.
last_message_atstring (date-time)When QHR last wrote, UTC; null before any reply.

Errors

HTTPCodeMeaningHow to fix
400bad_requestA parameter is missing or malformed.Check the parameters against this operation's documentation.
401token_missingNo Authorization: Bearer … header, or it is malformed.Send Authorization: Bearer qhr_… with the full token.
401token_invalidThe 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.
401token_expiredThe token is past its expiry date.Create a new token.
401token_revokedThe 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.
401tenant_inactiveThe company account is suspended.Contact QHR support.
403token_read_onlyThis token can only read; the operation makes changes.Use a token created with "Allow changes".
403forbiddenThe token owner's role lacks the permission this operation needs.Ask an admin to grant the permission shown on this operation (x-permission).
403employee_inactiveThe token owner's employee record is not active.HR must reactivate the employee record.
403tenant_access_revokedThe 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.
422validation_failedSome fields are missing or not valid.Fix the fields named in error (and errors when present), then send again.
This endpoint can also return the errors that can happen on any endpoint →402 / 412 / 425 entitlement_blocked · 429 rate_limited · 500 internal_error

See the full error catalogue →