Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request PUT \ --url http://localhost:8080/api/governance/routing-rules/{rule_id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "enabled": true, "cel_expression": "<string>", "targets": [ { "weight": 0.5, "provider": "<string>", "model": "<string>", "key_id": "<string>" } ], "fallbacks": [ "<string>" ], "priority": 123, "query": {} } '
{ "message": "<string>", "rule": { "scope": "global", "id": "<string>", "name": "<string>", "description": "<string>", "enabled": true, "cel_expression": "<string>", "targets": [ { "weight": 0.5, "provider": "<string>", "model": "<string>", "key_id": "<string>" } ], "fallbacks": [ "<string>" ], "scope_id": "<string>", "priority": 123, "query": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Updates an existing routing rule’s configuration.
Routing rule ID
Request to update a routing rule (all fields optional; providing targets replaces all existing targets)
targets
Replaces all existing targets when provided; weights must sum to 1
1
Show child attributes
Routing rule updated successfully
Response containing created/updated routing rule
CEL-based routing rule for intelligent request routing
Was this page helpful?