Policies
Set Current Version
Set the current version of a policy
PATCH
Change which version is the current (active) version for a policy. This is useful for rolling back to a previous version or promoting a specific version.
Agents that reference this policy will automatically use the new current version on their next job run.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
policy_id | uuid | Yes | UUID of the policy to update |
version_id | uuid | Yes | UUID of the version to set as current |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Yes | UUID of the organization for access control |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Organization ID. This is required for access control. It can be provided via query or request body depending on the endpoint.
Response
200 - application/json
Policy serializer