Skip to main content

Create an application profile with the REST API

Send the following request to create an application profile:

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

To define only the required fields in the application profile, include a payload like this example:

{
"profile": {
"name": "Applications REST API Example",
"business_unit": {
"guid": "08w93dm6-b5gf-4259-a895-39e7d933956k"
},
"policies": [
{
"guid": "1wg6dc84-76kk-5467-a5t2-c5885277jf1p"
}
],
"business_criticality": "HIGH"
}
}
Important

If you have the Creator role, but not the Security Lead role, the payload must include the teams property.

To define all possible fields in the application profile, include a payload like this example:

{
"guid": "string",
"id": 0,
"oid": 0,
"organization_id": 0,
"profile": {
"name": "Applications REST API Example",
"business_criticality": "VERY_HIGH",
"business_owners": [
{
"email": "string",
"name": "string"
}
],
"business_unit": {
"guid": "04w94be6-b5gf-6530-q539-66j3g78216v"
},
"custom_field_values": [
{
"app_custom_field_name": {
"name": "custom_field",
"organization_id": 0,
"sort_order": 0
},
"field_name_id": 0,
"id": 0,
"value": "string"
}
],
"custom_fields": [
{
"name": "name",
"value": "string"
}
],
"description": "string",
"name": "string",
"policies": [
{
"guid": "4ft7bf90-33du-0325-t6b6-c4389021xw4m",
"is_default": true
}
],
"settings": {
"dynamic_scan_approval_not_required": true,
"nextday_consultation_allowed": true,
"sca_enabled": true,
"static_scan_dependencies_allowed": true
},
"tags": "string",
"teams": [
{
"guid": "7in7be55-81gl-8720-f4s8-c7611840xw7u"
}
]
},
"scans": [
{
"internal_status": "string",
"status": "CREATED"
}
]
}

You can get the guid value for the business_unit property from the Identity API and get the guid value for the policies property from the Policy API.