Promoting a Development Sandbox Scan with the REST API

Veracode APIs

Use this command to promote the latest scan for the specified sandbox:

http --auth-type=veracode_hmac POST "https://api.veracode.com/appsec/v1/applications/{applicationGuid}/sandboxes/{sandboxGuid}/promote"

You can use the Applications API to get the GUID for an application or development sandbox.

Use this command to promote a specific sandbox scan:

http --auth-type=veracode_hmac POST "https://api.veracode.com/appsec/v1/applications/{applicationGuid}/sandboxes/{sandboxGuid}/promote?build_id={build_id}"

build_id is optional. You can obtain it from a Summary Report or with the getbuildinfo.do call.

Use this command to promote and delete the latest scan for the specified sandbox:

http --auth-type=veracode_hmac POST "https://api.veracode.com/appsec/v1/applications/{applicationGuid}/sandboxes/{sandboxGuid}/promote?delete_on_promote=true"