Batch endpoint
The batch-endpoint provides a way to send up to 20 requests in one go. Each request will have a separate response inside the response and is identified by the id set in the request.
Example
http://{environment}/sdk/system/{version}/batch
Request
In the body of each request, the filter-tag can be used to select the appropriate business objects.
{
"requests": [
{
"id": "1",
"url": "http://{environment}/sdk/system/2/read/Department",
"body": {
"filter": {
"Syscode": {"eq": 260 }
}
},
{
"id": "2",
"url": "http://{environment}/sdk/system/2/read/Person",
"body": {
"filter": {
"Syscode": {"eq": 460 }
}
}
]
}
Response
The response will contain a response for each request.
{
"responses": [
{
"id": "1",
"status": "200",
"body": {
"records": {
"records": [
{
"City": "Boxmeer",
"Country": "Nowhere land",
"Syscode": 260
}
]
}
}
},
{
"id": "2",
"status": "200",
"body": {
"records": {
"records": [
{
"firstname": "Peter",
"lastname": "Billings",
"Syscode": 460
}
]
}
}
}
}