Bulk evaluate conditions
Evaluate a bulk condition evaluation request. The response is a bulk condition evaluation response indicating the results of evaluating the conditions. Each individual evaluation request in the bulk request can succeed or fail independently. Each successful evaluation yields a condition evaluation response object that contains a result
property. Each failed evaluation yields a condition evaluation response object that contains error details. Duplicate condition evaluation request objects in the REST request are ignored, and together result in only one condition evaluation response object in the REST response. The order of the condition evaluation response objects in the REST response is not guaranteed. In order to determine which condition evaluation response corresponds to which condition evaluation request, do not use the ordering. Instead, check the requested
property of the condition evaluation response object to determine which request it corresponds to.
1{2 "responses": [3 {4 "requested": {5 "conditionId": "1c4cdebb-c125-41ea-99c2-ac0aeedb646e",6 "objectTypeName": "person",7 "objectId": "9da58bba-3961-41fb-be16-cdbf8b504451"8 },9 "result": true10 },11 {12 "requested": {13 "conditionId": "1c4cdebb-c125-41ea-99c2-ac0aeedb646e",14 "objectTypeName": "person",15 "objectId": "4688f7e9-cd70-4a87-930e-55b6f8cbb264"16 },17 "result": false18 },19 {20 "requested": {21 "conditionId": "590acf3d-b226-4db0-b92f-001c44aa6503",22 "objectTypeName": "account",23 "objectId": "89bf6f8f-a307-4116-ba3c-90d16ddd177b"24 },25 "result": true26 },27 {28 "requested": {29 "conditionId": "590acf3d-b226-4db0-b92f-001c44aa6503",30 "objectTypeName": "account",31 "objectId": "6007d257-dd08-4247-b29c-6e685452df0c"32 },33 "errorCode": "DH6200",34 "errorMessage": "The object with the ID \"6007d257-dd08-4247-b29c-6e685452df0c\" was not found for the \"account\" entity type.\n"35 }36 ]37}
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | The condition evaluation requests were processed. | Schema | |
400 | Bad Request | The request was invalid. | Schema |