Gate Rules
Add or remove rules from an approval gate. Rules define thresholds like min_confidence, validation_pass_rate, and field_coverage.
POST
/v1/structuring/gates/{id}/rulesResponse
Response fields (POST)
idstringRule UUID.
gate_idstringParent gate UUID.
namestring | nullRule name.
typestringRule type.
configobject | nullRule configuration.
sort_orderintegerEvaluation order.
is_activebooleanAlways true for newly created rules.
Response (POST)
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"gate_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Minimum confidence",
"type": "min_confidence",
"config": { "threshold": 0.85 },
"sort_order": 0,
"is_active": true
}Errors
Error responses (POST)
401unauthorizedMissing or invalid API key.
404not_foundApproval gate not found or does not belong to your organization.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.
DELETE
/v1/structuring/gates/{gateId}/rules/{ruleId}Response
Response fields (DELETE)
deletedbooleanAlways true on success.
Response (DELETE)
{
"deleted": true
}Errors
Error responses (DELETE)
401unauthorizedMissing or invalid API key.
404not_foundApproval gate or rule not found, or gate does not belong to your organization.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.