Create a batch
post
https://ris.rightsline.com
/v4/batch
Create batch

Sample Create Batch Request - Retrieve records

1
{
2
"method": "GET",
3
"batchOptions": {
4
"cancelIfRecordFails": false
5
},
6
"records": {
7
"1": [
8
{
9
"id": 100
10
},
11
{
12
"id": 101
13
}
14
],
15
"3": [
16
{
17
"id": 200
18
},
19
{
20
"id": 201
21
}
22
]
23
},
24
"relationships": [
25
{
26
"id": 301
27
}
28
]
29
}
Copied!

Sample Create Batch Request - Create contact records

1
{
2
"method": "POST",
3
"records": {
4
"2": [
5
{
6
"title":"Person 1",
7
"template":{
8
"templateId": 1
9
},
10
"characteristics":{
11
"first_name": "John",
12
"last_name": "Smith",
13
"department": "Sales"
14
}
15
},
16
{
17
"title":"Person 2",
18
"template":{
19
"templateId": 1
20
},
21
"characteristics":{
22
"first_name": "Susan",
23
"last_name": "Williams",
24
"department": "Accounting"
25
}
26
}
27
]
28
},
29
"batchOptions":{
30
"cancelIfRecordFails": true
31
}
32
}
Copied!

Sample Create Batch Request - Execute Workflow

1
{
2
"method": "EXECUTE-WORKFLOW",
3
"records": {
4
"1": [
5
{
6
"id": 100,
7
"actionId": 1
8
},
9
{
10
"id": 101,
11
"actionId": 1
12
}
13
],
14
"3": [
15
{
16
"id": 200,
17
"actionId": 2
18
},
19
{
20
"id": 201,
21
"actionId": 4
22
}
23
]
24
}
25
}
Copied!