Governance
Create routing rule
Creates a new CEL-based routing rule for intelligent request routing. Provider and model can be left empty to use the incoming request values.
post/api/governance/routing-rules
Request
- Base URLhttp://localhost:8080
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"targets": [
{
"weight": 0.5
}
]
}Response
Routing rule created successfully
Example response
{
"rule": {
"targets": [
{
"weight": 0.5
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.