Create a batch
Create batch
POST
https://ris.rightsline.com/v4/batch
Create a new batch for processing.
Headers
Name | Type | Description |
---|---|---|
x-api-key | string | Your company's API key. |
Authentication | string | Authentication token. |
Request Body
Name | Type | Description |
---|---|---|
method | string | GET/POST/PUT/DELETE. See Batch methods. |
batchOptions | object | Options for processing. See Batch options. |
records | keyed collection | The records to process. A key-value collection of the char type ID and an array of records. |
relationships | array | The relationships to process. |
Sample Create Batch request - Retrieve records
Sample Create Batch Request - Create contact records
When creating records in a batch, you can include an optional string parameter referenceId
in the request body. If a record in the batch fails to create for any reason, the referenceId
will be returned for that record so you are able to map the record in the request to the errored record in the response.
Sample Error Response
Sample Create Batch Request - Copy Record
To copy a record or multiple records, you can use the "COPY" method. Copying a record creates an identical record to the one being copied, with the same char type, template, status, and characteristics. The new record will have a new ID, and you can specify the following options:
title
- The title for the new recorddateMathOption (optional, default = Default)
- Use one of the following options:Default
- All fields with date math on module records will refer to copied record dates; all fields with date math on component record dates will refer to original record dates.Original Record
- All date math on module record and child components being copied should refer to original record dates.Copied Record
- All date math on module record and child components being copied should refer to copied record dates.
copyRelationships
- include the relationships that you want to copy over to the new record,copyParties
- set to false to discard all parties when copying record. Defaults to true.
Sample Create Batch Request - Copy To
The Copy To functionality allows you to copy records to a new char type. The request is the same as the Copy functionality, but including the new charTypeId and the new templateId for the copied record.
Sample Create Batch Request - Execute Workflow
Sample Create Batch Request - Create Relationship
Sample Create Batch request - Delete relationships
Sample Create Batch Request - Calculate Amortization
Last updated