Skip to main content

Update an application profile with the REST API

Send the following request to update an application profile:

http --auth-type=veracode_hmac PUT "https://api.veracode.com/appsec/v1/applications/{guid}" < input.json

Include a payload that defines the updated properties. For example:

note

When you update an application profile with this API, all properties are required.

To avoid overwriting data when using the PUT method, perform a GET request to retrieve the complete application details in JSON. After you have retrieved the complete details, update only the necessary fields. Then, use the modified JSON to create the PUT request.

Performing the GET request first ensures that all the fields of the application are available for creating the PUT request.

{
"profile": {
"name": "Applications REST API 9.5",
"tags": "demo, restapi",
"business_unit": {
"guid": "{business_unit_guid}"
},
"business_owners": [
{
"email": "[email protected]",
"name": "string"
}
],
"archer_app_name": null,
"policies": [
{
"guid": "{policy_guid}",
"is_default": true
}
],
"teams": [
{
"guid": "{team_guid}"
}
],
"custom_fields": [
{
"name": "my_custom_field",
"value": "my_custom_value"
}
],
"description": null,
"business_criticality": "HIGH"
}
}