Run APIs in Batches

post

/api/core/Batch/execute

Runs the batch of APIs specified in the body as elements in an array.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Actions
Type: array
Array of objects having API requests defined in them
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : data
Type: object
Request body for the API
Example:
{
    "ExampleKey":"ExampleValue"
}
Nested Schema : dynamicData
Type: object
Variables whose values change dynamically as the batch file is executed
Example:
{
    "ExampleKey":"ExampleValue"
}
Nested Schema : forEach
Type: object
Object denoting a loop over an array of variables to call an API for each of them
Example:
{
    "from":"jobIDs",
    "varName":"jobID"
}
Nested Schema : response
Type: array
Array of variables whose values need to be populated from the API response
Show Source
Example:
[
    {
        "varName":"serverID",
        "fieldName":"ServerID"
    }
]
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulGetOperation
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : coreBatchExecuteResponseBody
Type: object
Show Source
Nested Schema : request
Type: object
A combined object having properties of both data and dynamicData from the request body
Example:
{
    "fromData":"value1",
    "fromDynamicData":"value2"
}
Nested Schema : response
Type: object
Response object from the API called
Example:
{
    "success":true,
    "message":"example",
    "data":[
    ]
}

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
Back to Top