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
- 200
- 400
- 403
- 404
The alias with its updated policy.
The new policy is invalid.
Permissions do not allow modifying this alias.
Alias not found.