Skip to main content
Version: 2.0

Replace an alias's routing policy

PUT 

/v2/agent_aliases/:alias_key/policy

Replaces the alias's routing policy and stickiness configuration in one atomic operation. The replacement is whole-object. Partial merging is not supported.

Use this endpoint to change canary weights, tenant routing, and similar settings. The change is atomic: in-flight sessions resolved before the change keep their resolved agent. Resolution happens once, when the session is created.

Request

Responses

The alias with its updated policy.