Run APIs in Batches

post

/api/core/Batch/execute

Runs the batch of APIs specified in the body as elements in an array. At minimum, each Action element requires the api and method property. Additional required properties change depending on the specified endpoint and method.

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
The array of objects with API requests defined in them.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : data
Type: object
The request body for the API.
Example:
{
    "ExampleKey":"ExampleValue"
}
Nested Schema : dynamicData
Type: object
Key-value pairs. Values change dynamically as the batch file is run.
Example:
{
    "ExampleKey":"ExampleValue"
}
Nested Schema : forEach
Type: object
An object defining a loop over an array. The API is called for each item in the array.
Example:
{
    "from":"jobIDs",
    "varName":"jobID"
}
Nested Schema : response
Type: array
The array of field-value pairs to populate with values 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
The response body for a successful get operation.
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 with properties of both data and dynamicData from the request body.
Example:
{
    "fromData":"value1",
    "fromDynamicData":"value2"
}
Nested Schema : response
Type: object
The response object from the API.
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
An error.
Back to Top