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

Request body

OR

Example request

{
  "targets": [
    {
      "weight": 0.5
    }
  ]
}

Response

Routing rule created successfully

messagestring

Example response

{
  "rule": {
    "targets": [
      {
        "weight": 0.5
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.