Skip to main content
PUT
/
api
/
governance
/
routing-rules
/
{rule_id}
Update routing rule
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>",
  "provider": "<string>",
  "model": "<string>",
  "fallbacks": [
    "<string>"
  ],
  "priority": 123,
  "query": {}
}
'
{
  "message": "<string>",
  "rule": {
    "scope": "global",
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "enabled": true,
    "cel_expression": "<string>",
    "provider": "<string>",
    "model": "<string>",
    "fallbacks": [
      "<string>"
    ],
    "scope_id": "<string>",
    "priority": 123,
    "query": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

rule_id
string
required

Routing rule ID

Body

application/json

Request to update a routing rule

name
string
description
string
enabled
boolean
cel_expression
string
provider
string | null
model
string | null
fallbacks
string[]
priority
integer
query
object

Response

Routing rule updated successfully

Response containing created/updated routing rule

message
string
rule
object

CEL-based routing rule for intelligent request routing