Replace an alias's routing policy
PUT/v2/agent_aliases/:alias_key/policy
Atomically replace the alias's routing policy and stickiness configuration. Replacement is whole-object; partial merging is not supported.
Use this endpoint to flip canary weights, change tenant routing, etc. The change is atomic: in-flight sessions resolved before the change keep their resolved agent (resolution is once-at-creation).
Request
Responses
- 200
- 400
- 403
- 404
The alias with its updated policy.
The new policy is invalid.
Permissions do not allow modifying this alias.
The alias was not found.