Batch API Overview

Resources to manage batch jobs

Overview

The Batch API exposes operations that enable client applications to define and execute user-defined workflows as batch jobs.

A user-defined workflow is a series of operations that are managed in sequence. These operations are defined as a series of task objects in JSON format. Each of these tasks represents an expensive or long-running process that is submitted to the workflow engine in a single request as part of a BATCH job for processing.

Operations

OperationMethodEndpointDescription
Create Batch JobPOST/platform/batch/v1/jobsCreates a batch job.
Search Batch JobsGET/platform/batch/v1/jobsReturns list of batch jobs.
Get Batch JobGET/platform/batch/v1/jobs/{jobId}Returns batch job.
Update Batch JobPATCH/platform/batch/v1/jobs/{jobId}Updates batch job.
Get Batch Job TaskGET/platform/batch/v1/jobs/{jobId}/tasks/{taskId}Returns task.

Entitlements

Client must be assigned one of the following entitlements to use this API:

  • RI-RISKMODELER
  • RI-UNDERWRITEIQ

User-Defined Workflows

A user-defined workflow is a workflow that consists of a series of tasks that are processed in the specified order.

For example, a batch job can define a workflow that consists of multiple tasks that perform the following operations in sequence: 1) create new account exposures, 2) generate an exposure summary report for those accounts, 3) geocode and hazard those accounts, 4) export location exposure data for those accounts.

For each task in the workflow, the batch job initiates a separate job to process that request. Each job in the workflow must be completed before the next task in the workflow can be started. The batch job manages the polling of jobs and the passing of operation outputs (e.g. new object IDs) between tasks using task path variables.

Batch Templates

A batch template is a collection of analysis settings that are used to generate report views in UnderwriteIQ.

Batch templates may specify model profile settings, event rate sets, output profile versions, analysis settings including DLM configurations and analysis currency, and report settings. Batch templates can be used as analysis templates in the UnderwriteIQ application. To learn more, see Workflow Builder in Help Center.

Postman Collections

The RMS Developers Postman site houses a number of Postman collections that provide working samples of UnderwriteIQ workflows.

CollectionOperationsURL
Sample 1: Batch Workflow with Impact, Geohaz, ModelBulk Edit, Geohaz, Modelhttps://www.postman.com/rms-developers/rms-developers/request/h8hd33d/sample-1-batch-workflow-with-import-geohaz-model
Sample 2: Batch Workflow Multiple Model RunsModelhttps://www.postman.com/rms-developers/rms-developers/request/qy77my9/sample-2-batch-workflow-multiple-model-runs?tab=body
Sample 3: Batch Workflow with Import, Geohaz, Model, RDM ExportBulk Edit, Geohaz, Model, RDM Exporthttps://www.postman.com/rms-developers/rms-developers/request/0ch038s/sample-3-batch-workflow-with-import-geohaz-model-rdm-export?tab=body
Sample 4: Batch Workflow with Import, Geohaz, Model (Large Account)Bulk Edit, Geohaz, Model (Large Account)https://www.postman.com/rms-developers/rms-developers/request/6j2jsei/sample-4-batch-workflow-with-import-geohaz-model-large-account?tab=body
Sample 5:Batch Workflow with Import, Geohaz, Model, Marginal Impact, Exp Summary ReportBulk Edit, Geohaz, Model, Marginal Impact, Export Summary Reporthttps://www.postman.com/rms-developers/rms-developers/request/856ibgu/sample-5-batch-workflow-with-import-geohaz-model-marginal-impact-exp-summary-report?tab=body
Sample 6: Batch Workflow with Exposure Bulk Update Parent ConditionBulk Edithttps://www.postman.com/rms-developers/rms-developers/request/jojkhnv/sample-6-batch-workflow-with-exposure-bulk-update-parent-condition