Read all Batch Rule Executions

Retrieves the details of all executions of a given rule.

Whenever a batch rule is executed, the system keeps track of that execution by writing a small data record to the application log. With this service method, you can retrieve the data records for all executions of a specified rule.

Request

URI: v1/projects/<projectId>/batch-rules/<ruleId>/executions

HTTP Method: GET

Permissions: <rule>.r

Request Parameters

Parameter Required Data Type Description Parameter Type
projectId Yes string Unique ID of the rule project to which the batch rule belongs. Path
ruleId Yes string Unique ID of the batch rule to be executed. Path

Request Example

v1/projects/185d9a72-a629-4b94-b421-a2f0301bb072/batch-rules/d54a9b0d-1731-4f01-a7d3-a92771e45064/executions

With this request, you retrieve a list of data records that the system has loged for all executions of the specified rule.

Response

Response Status and Error Codes

Code Description
200 OK. Execution data retrieved successfully.
401 Unauthorized. Execution data couldn't be retrieved due to insufficient access rights.
403 Forbidden
404 Execution data not found in runtime application. Possible reasons:
  • Invalid rule ID, project ID, or execution ID.
  • Rule hasn't been activated.
429 Too many requests. Rate limiting conditions were violated (see Note in introductory section.)

Response Example

[
    {
        "Id": "05560ead-65cb-4cbe-9814-c8b6c823d650",
        "Status": "FINISHED",
        "SubmittedOn": "2021-01-13T17:03:35.856Z",
        "StatusUpdatedOn": "2021-01-13T17:03:36.377Z",
        "Error": null
    },
    {
        "Id": "dfdca371-d027-4ec8-abb6-851cd811453f",
        "Status": "FINISHED",
        "SubmittedOn": "2021-01-13T17:00:00.224Z",
        "StatusUpdatedOn": "2021-01-13T17:00:00.800Z",
        "Error": null
    },
    {
        "Id": "c340b8c0-39df-45fe-8ac7-1e6bd5010cf8",
        "Status": "FINISHED",
        "SubmittedOn": "2021-01-13T17:06:08.084Z",
        "StatusUpdatedOn": "2021-01-13T17:06:08.390Z",
        "Error": null
    },
    {
        "Id": "8f8a0ac2-217e-439d-a0e1-357d055692c6",
        "Status": "FINISHED",
        "SubmittedOn": "2021-01-13T16:59:45.773Z",
        "StatusUpdatedOn": "2021-01-13T16:59:46.952Z",
        "Error": null
    }
]