v1

latestSwagger 2.0Apache 2.02026-07-13112149159.3 KB
Policies

Update policy

Update/replace and existing policy

put/policies/{policyId}

Path parameters

policyIdstring required

Query parameters

activeboolean

Mark policy as active

Headers

x-anchore-accountstring

An account name to change the resource scope of the request to that account, if permissions allow (admin only)

Request body

created_atstring date-time
last_updatedstring date-time
policyIdstring

The bundle's identifier

activeboolean

True if the bundle is currently defined to be used automatically

userIdstring

UserId of the user that owns the bundle

policy_sourcestring

Source location of where the policy bundle originated

Response

A list with a single updated policy bundle record

created_atstring date-time
last_updatedstring date-time
policyIdstring

The bundle's identifier

activeboolean

True if the bundle is currently defined to be used automatically

userIdstring

UserId of the user that owns the bundle

policy_sourcestring

Source location of where the policy bundle originated