Upload an edited bulk-edit sheet to preview its changes
/employees/bulk_updatesemployee/edit_othersRequires feature employeeNot available in Claudeemployee_bulk_updates.createUploads the bulk-edit sheet after editing it (.xlsx or .csv, at most 5 MB and 500 rows, with an employee_no column) and starts building its preview in the background. Nothing changes on any employee yet: the preview lists, per row, what would change, what is unchanged and what is invalid. The answer is 202 with the bulk_update_id.
When to use: after editing the file from employee_bulk_updates.export. Any column can be left out; only the columns present are compared.
Prerequisites: the edited file. Follow the preview with employee_bulk_updates.show until status is awaiting_confirmation, then apply it with employee_bulk_updates.confirm or drop it with employee_bulk_updates.cancel.
Side effects: stores the uploaded rows until the bulk edit is confirmed, cancelled, or 24 hours pass.
Not offered to Claude: it is a file upload, and the start of a change to many employees at once.
Not available in Claude: file uploads are API-only.
Before you call this
You will need ids that come from these operations:
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
multipart/form-data
| Field | Type | Description |
|---|---|---|
fileRequired | file | The spreadsheet, sent as the multipart field file, at most 5 MB and 500 rows. |
Response
202 The file was accepted; the preview is being built.
| Field | Type | Description |
|---|---|---|
bulk_update_idRequired | integer | The bulk edit's id, for employee_bulk_updates.show. |
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 | The file is over 5 MB or 500 rows, cannot be read, has no employee_no column, or has no rows. | Start from employee_bulk_updates.export, keep employee_no, and stay within 500 rows. |
entitlement_blocked · 429 rate_limited · 500 internal_error