Skip to Content

Documentation

Risk Cloud API: Bulk Link Records

Please reference our Bulk Link Records Help Article for in-depth information about the functionality and permissions needed. 

Obtain your API Access Token to get started.

This endpoint will verify if you have any incomplete Bulk Link Record (BLR) Request. Ideally, we should only run ONE unique set of workflow (wf) /step combination at a time. The order matters, so the reverse is possible as long as we don’t have the exact same workflow/step combination. The combination will be available once the the latest one completes or fails.

Possible combinations Ex.

Input New BLR Request (req)Existing BLR Request [STATUS]Allowed?
req#1 wf1 / step 1 -> wf1 / step 2noneyes – no other active request exist
req#2 wf1 / step 1 -> wf1 / step 2req#1 wf1 / step 1 -> wf1 / step 2
[PROCESSING / PENDING UPLOAD / FILE ERRORS /  SYSTEM ERROR]
no – one other active request exist
req#2 wf1 / step 1 -> wf1 / step 2req#1  wf1 / step 1 -> wf1 / step 2
[COMPLETED / COMPLETED WITH ERROR]
yes – no other active request exist
req#2 wf1 / step 1 -> wf1 / step 2req#1 wf1 / step 2 -> wf1 / step 1
[PROCESSING / PENDING UPLOAD / FILE ERRORS /  SYSTEM ERROR]
yes – reverse case is still acceptable
req#2 wf1 / step 1 -> wf1 / step 2req#1 wf1 / step 2 -> wf1 / step 1 [COMPLETED / COMPLETED WITH ERROR]yes – reverse case is still acceptable

This endpoint has the following parameters:

Query Parameter
Required
Description

sourceWorkflowId

No

The first workflow Id you selected

targetWorkflowId

No

The second workflow Id you selected

 

Response

Response Parameter
Description

boolean

Return true if it has an incomplete request.

This endpoint will create a new Bulk Link Record Request. We recommend you verify that there are no incomplete Bulk Link Record Request before proceeding with this endpoint.

POST/api/v1/bulk-link-records/source/{sourceWorkflowId}/target/{targetWorkflowId}

This endpoint has the following parameters:

Query Parameter
Required
Description

sourceWorkflowId

No

The first workflow Id you selected

targetWorkflowId

No

The second workflow Id you selected

 

Response

<BulkLinkRecordsResult>

Response ParameterDescription
idThe Bulk Link Record Request Id.
creatorThe Bulk Link Record Request creator.
submitterThe Bulk Link Record Request submitter.
dateCompletedThe date the Bulk Link Record Request was completed.
dateCreatedThe date the Bulk Link Record Request was created.
statusThe current status for the Bulk Link Record Request.
sourceWorkflowIdThe first workflow Id.
sourceWorkflowNameThe first workflow name.
sourceApplicationIdThe first workflow > application Id.
sourceApplicationNameThe first workflow > application name.
sourceApplicationIconThe first workflow > application icon.
sourceApplicationColorThe first workflow > application color.
targetWorkflowIdThe second workflow Id.
targetWorkflowNameThe second workflow name.
targetApplicationIdThe second workflow > application Id.
targetApplicationNameThe second workflow > application name.
targetApplicationIconThe second workflow > application icon.
targetApplicationColorThe second workflow > application color.
workflowMapTypeThe workflow relationship mapping type between the first and second workflow.
fileNameThe name of the file you uploaded.
errorTemplateCountThe number of errors found on your uploaded file.
requestTotalThe total number of rows you aimed to link after your Bulk Link Record Request finished processing.
requestSuccessTotalThe total number of successful links after your Bulk Link Record Request finished processing.
requestErrorTotalThe total number of unsuccessful links after your Bulk Link Record Request finished processing.

This endpoint will download the bulk link record template file for your Bulk Link Record Request. You populate it with data and upload it later.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

Response

Response ParameterDescription
ModelAndViewReturns the base template xlsx file.

2.2 Upload File

This endpoint will upload your file to the given Bulk Link Record Request. It will perform a high level validation check and should pass before processing. It does not do any detailed level validation or actual record linking.

POST/api/v1/bulk-link-records/import/{requestId}

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.
fileThe file you want to upload to process. Can be in xlsx or csv format.

Response

<BulkLinkRecordsResult> – same as 1.2 Response.

2.3 Delete File

This endpoint will delete the file from the given Bulk Link Record Request. You can run the upload file endpoint again to add a new file.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

Response

<BulkLinkRecordsResult> – same as 1.2 Response.

 

Step 3 Process File and Complete Record Linking

3.1 Process File

This endpoint will start the file process. We recommend the file passing the high level validation check before proceeding. This endpoint will perform a detailed level validation check and either result in (1) failed detailed level validation > download file validation error summary, no records were linked (2) passed detailed level validation > download completed / completed with error summary, records were linked.

POST/api/v1/bulk-link-records/process/{requestId}

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

 

Response

200 status code with an empty body.

 

3.2 Route 1 Failed Detailed Level Validation > Download File Validation Error Summary

This endpoint will download the validation error summary. The file failed the detailed level validation check. The Bulk Link Record Request should have the status FILE_ERRORS. No records have been linked.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

 

Response

Response ParameterDescription
ModelAndViewReturns the validation error summary in xlsx format.

 

3.3 Route 2 Passed Detailed Level Validation > Download Processed Completed (with Errors) Summary

This endpoint will download the completed (with errors) summary. The file passed the detailed level validation check. The Bulk Link Record Request should have the status COMPLETED or COMPLETED_WITH_ERRORS. Records should have been linked.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

 

Response

Response ParameterDescription
ModelAndViewReturns the completed / completed with errors summary in xlsx format.

 

Step 4 Other

This endpoint will find the given Bulk Link Records Request.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

 

Response

<BulkLinkRecordsResult> – same as 1.2 Response.

 

This endpoint will find all the Bulk Link Records Request that you have access to.

This endpoint has the following parameters:

Query ParameterRequiredDescription
pageable params
NoOptional pageable fields ex sort or size.

 

Response

Response ParameterDescription
Page<BulkLinkRecordsResult>Pageable list of BulkLinkRecordsResult.

<BulkLinkRecordsResult> – same as 1.2 Response.

 

This endpoint will deactivate the given Bulk Link Records Request.

This endpoint has the following parameters:

Required Path ParameterDescription
requestIdThe unique Bulk Link Records Request Id.

Response

<BulkLinkRecordsResult> – same as 1.2 Response.