Deleting a Policy with the REST API

Veracode APIs

Publication
Veracode APIs
Edition date
2023-01-27
Last publication
2023-01-27T02:45:54.600583

Use this command to delete a policy and replace it with another policy for the affected applications:

http --auth-type=veracode_hmac DELETE “https://api.veracode.com/appsec/v1/policies/{policyGuid}?replacement_GUID={replacement_GUID}

Use this command to delete a policy and replace it with a default policy for the affected applications:

http --auth-type=veracode_hmac DELETE “https://api.veracode.com/appsec/v1/policies/{policyGuid}?replace_with_default_policy=true”