Generates a report for the specified bulk import job.
Base Request
GET /api/import/job/[jobId]/report
where [jobId] is the alphanumeric ID for the bulk import job.
Query Parameters
| Parameter | Description | Type | Required | Notes |
|---|---|---|---|---|
| format | The format in which to generate the report. | string | Optional | Default is json. |
Headers
| Header Name | Description | Required | Values |
|---|---|---|---|
| Authorization | The access token | Required |
Bearer [access_token]
where [access_token] is a string generated when you complete authentication (see Getting Started) |
| User-Agent | Identity of the client making the request to the server | Required |
[product]/[version]
where [product] is the name of the software you are using to make the request and [version] is the numbered version of the software (for example, MyCompanyProduct/1.0). For information on other types of values commonly included in user-agent request headers, see the User-Agent HTTP header reference section on the Mozilla developer documentation website. |
| Accept | The format of the data to be returned | Optional | application/vnd.hxcs.v1+json |
Sample Request
GET /api/import/job/[jobId]/report?format=json Authorization: Bearer [access_token] User-Agent: MyCompanyProduct/1.0 Accept: application/vnd.hxcs.v1+json
Response Body
| Element | Description | Type | Notes |
|---|---|---|---|
| documentsFailed | List of the documents that were imported into the repository with failures. | array | None |
| error | Error message explaining why the document failed. | string | None |
| bulkImport | List of elements applying to the bulk import job that had a failed document. | array | None |
| bulkImportUpload | List of elements applying to upload portion of the bulk import job. | array | None |
See Bulk Import and Document for more information on the additonal, more common elements listed in the body of the following sample response.
Sample Response
{
"documentsFailed": [
{
"error": "string",
"metadata": {
"bulkImport": {
"awsAccessKeyId": "string",
"awsSecretAccessKey": "string",
"awsSessionToken": "string",
"bucket": "string",
"completedAt": "2025-03-26T21:08:39.966Z",
"createdAt": "2025-03-26T21:08:39.966Z",
"creator": "string",
"description": "string",
"dryRun": true,
"failedDocuments": 0,
"importedDocuments": 0,
"jobId": "string",
"name": "string",
"queue": "string",
"startedAt": "2025-03-26T21:08:39.966Z",
"status": "string",
"totalDocuments": 0,
"uniqueKey": "string"
},
"bulkImportUpload": {
"digest": "string",
"encoding": "string",
"filename": "string",
"import_key": "string",
"length": 0,
"mimeType": "string"
},
"jobId": "string",
"sys_acl": [
{
"begin": "2025-03-26T21:08:39.966Z",
"creator": "string",
"end": "2025-03-26T21:08:39.966Z",
"granted": true,
"group": {
"id": "string",
"name": "string"
},
"permission": "string",
"status": "PENDING",
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
],
"sys_changeToken": "string",
"sys_contributors": [
{
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
],
"sys_created": "2025-03-26T21:08:39.966Z",
"sys_creator": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_description": "string",
"sys_effectiveAcl": [
{
"begin": "2025-03-26T21:08:39.966Z",
"creator": "string",
"end": "2025-03-26T21:08:39.966Z",
"granted": true,
"group": {
"id": "string",
"name": "string"
},
"permission": "string",
"status": "PENDING",
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
],
"sys_effectivePermissions": [
"string"
],
"sys_fulltextBinary": "string",
"sys_id": "string",
"sys_isFolderish": true,
"sys_lastContributor": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_lifecycleState": "string",
"sys_lockCreated": "2025-03-26T21:08:39.966Z",
"sys_lockOwner": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_mixinTypes": [
"string"
],
"sys_modified": "2025-03-26T21:08:39.966Z",
"sys_name": "string",
"sys_parentId": "string",
"sys_parentPath": "string",
"sys_path": "string",
"sys_pathDepth": 0,
"sys_pos": 0,
"sys_primaryType": "string",
"sys_repository": "string",
"sys_secpol": [
"string"
],
"sys_title": "string",
"sysfile_blob": {
"digest": "string",
"encoding": "string",
"filename": "string",
"import_key": "string",
"length": 0,
"mimeType": "string"
},
"the_unique_key": "string"
},
"timestamp": "2025-03-26T21:08:39.966Z"
}
],
"job": {
"awsAccessKeyId": "string",
"awsSecretAccessKey": "string",
"awsSessionToken": "string",
"bucket": "string",
"completedAt": "2025-03-26T21:08:39.966Z",
"createdAt": "2025-03-26T21:08:39.966Z",
"creator": "string",
"description": "string",
"dryRun": true,
"failedDocuments": 0,
"importedDocuments": 0,
"jobId": "string",
"name": "string",
"queue": "string",
"startedAt": "2025-03-26T21:08:39.966Z",
"status": "string",
"totalDocuments": 0,
"uniqueKey": "string"
}
}
Status Codes and Errors
The following table lists the returned status codes.
| Code | Description | Notes |
|---|---|---|
| 200 | OK | Successfully generates a report for the completed or canceled bulk import job. |
| 401 | Not Authorized | Authentication has failed or was not provided. |
| 403 | Not Allowed | Access permissions are invalid or missing. |
| 412 | Precondition Failed | The server did not allow a report to be generated because the bulk import job did not have a status of COMPLETED or CANCELLED. |