Adaptive optimization
Adaptive optimization endpoints.
Adaptive optimization endpoints.
This page is GENERATED from the OpenAPI spec (openapi.yaml) — it can never
drift from the served API. Set UR_BASE_URL (required: your gateway’s URL)
and UR_API_KEY (an ur_sk_* key); secrets are always the $UR_API_KEY placeholder.
Activate an independently qualified full policy
POST /v1/workspaces/{id}/adaptive-rollouts/activateRequires an owner or admin session with two-factor authentication, current explicit Automatic authorization, a valid independent qualification certificate, and a registered serving adapter. Starts at a root-sticky 1% canary. Unavailable prerequisites do not change serving.
Auth: Session cookie + workspace RBAC.
curl -sS -X POST "$UR_BASE_URL/v1/workspaces/req_0000000000000000/adaptive-rollouts/activate" \
-H "Cookie: better-auth.session_token=$UR_SESSION" \
-H "Content-Type: application/json" \
-d '{
"certificateId": "string",
"applicationId": "string",
"expectedAuthorizationVersion": 0
}'Revoke a full-policy rollout
POST /v1/workspaces/{id}/adaptive-rollouts/revokeRequires an owner or admin session with two-factor authentication. Future decisions preserve the original request after revocation. The action is audited and idempotent.
Auth: Session cookie + workspace RBAC.
curl -sS -X POST "$UR_BASE_URL/v1/workspaces/req_0000000000000000/adaptive-rollouts/revoke" \
-H "Cookie: better-auth.session_token=$UR_SESSION" \
-H "Content-Type: application/json" \
-d '{
"rolloutId": "string"
}'