Skip to main content
POST
Activate a new Autopilot policy version

Authorizations

Authorization
string
header
required

Headers

X-Workspace-Id
string<uuid>
required

UUID of the workspace to act in. Take it from GET /me (workspaces[].id). A key scoped to specific workspaces is rejected with 403 WORKSPACE_NOT_ALLOWED for any other id; a missing header is 400 WORKSPACE_REQUIRED.

Body

application/json
projectId
string<uuid>
required
policyOwnerId
string<uuid>
required
expectedLatestVersion
integer
required
Required range: x >= 0
requestId
string<uuid>
required
policy
object
required

Response

Policy version activated (or idempotently replayed)

data
object
required