Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <token>, where <token> is one of:

  • a Bifrost management API key,
  • a dashboard session token issued by POST /api/session/login,
  • base64 of <admin-username>:<admin-password> (legacy equivalent of BasicAuth).

Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs - the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.

Path Parameters

rule_id
string
required

Routing rule ID

Body

application/json

Request to update a routing rule (all fields optional; providing targets replaces all existing targets)

name
string
description
string
enabled
boolean
cel_expression
string
targets
object[]

Replaces all existing targets when provided; weights must sum to 1

Minimum array length: 1
fallbacks
string[]
priority
integer
query
object | null

Response

Routing rule updated successfully

Response containing created/updated routing rule

message
string
rule
object

CEL-based routing rule for intelligent request routing