Rules
Test Rule
post
/v1/rules/{rule_id}/testDry-run a rule against a real flow. Useful for the rule editor: 'show me whether this would have matched flow X'.
Authentication
Send your tenant secret key as a Bearer token. Keep secret keys on your server; never ship them in browser or mobile code.
Parameters
rule_idpath · required
No additional parameter description.
Request body
JSON · required
flow_idstringrequired
No additional field description.
Example request
cURL
curl --request POST \
--url 'https://api.fideralabs.com/v1/rules/{rule_id}/test' \
--header 'Authorization: Bearer $FIDERA_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"flow_id": "00000000-0000-0000-0000-000000000000"
}'Responses
200Successful Responsecontextobjectrequired
No additional field description.
decision_if_matchedstring | nullrequired
No additional field description.
matchedbooleanrequired
No additional field description.
reason_codes_if_matchedstring[]required
No additional field description.
application/json
{
"context": {},
"decision_if_matched": "string",
"matched": true,
"reason_codes_if_matched": [
"string"
]
}422Validation ErrordetailValidationError[]
No additional field description.
Operation ID
test_rule_v1_rules__rule_id__test_post