Read Simulation Data
Provides test data for rule simulation runs.
With this service method, you can provide test data for executing a rule in simulation mode.
If you have decided to better test a new rule before feeding it with large amounts of live data in your production environment, the next question arises: How can I provide test data to the rule? You can accomplish this by first calling this service method. The test data to be processed by the rule are imported via the request payload. Of course, you have to take care that the test data has the same structure than the expected live data so that the rule condition can be applied to the test data in a reasonable manner.
Once you’ve successfully uploaded the simulation data for the rule, you send a request to the simulation service method. See Simulate a Batch Rule.
Request
URI: /v1/projects/<projectId>/batch-rules/<ID>/simulation-input-template
HTTP Method: GET
Permissions: <rule>.a
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| projectID | Yes | string | Unique ID of the rule project to which the rule is assigned. | Path |
| ID | Yes | string | Unique ID of the rule to simulate. | Path |
| active | No | boolean |
Indicates for which version of the rule the test data shall be used.
|
Query |
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Simulation data uploaded successfully. |
| 401 | Unauthorized. Simulation data couldn't be uploaded due to insufficient access rights. |
| 403 | Forbidden. |
| 404 | Not found. For example, an invalid rule ID or project ID has been provided. |
Response Example
{
"myDataObjectName_aggregate": {
"myProperty_AVG": "<Number>"
}
}