
vsankar821763 (Community Member) asked a question.
when I use the below payload alone it is failing due to 400 error code .. what does that source parameter mean in the response
response :
{
"_embedded" : {
"api_errors" : [ {
"id" : "2e9879df-493f-4d2b-a7be-0cc75a244a61",
"code" : "BAD_REQUEST",
"title" : "Json Parse Error",
"detail" : "Cannot deserialize request JSON payload",
"status" : "400",
"source" : {
"pointer" : "/appsec/v1/applications",
"parameter" : "description"
}
} ]
},
"fallback_type" : null,
"full_type" : null
}
payload :
{
"profile": {
"name": "lfjslf;sf",
"tags": "Other Development Tools",
"business_unit": {
"id": 1564564,
"name": "jfhsakjfh",
"guid": "fasffsd-sdf-4b8c-acc6-d892d5ca79fd"
},
"business_owners": [{
"name": "sdfsdfs",
"email": "fsdfsdf"
}],
"archer_app_name": null,
"policies": [{
"guid": "fsdfs-70c6-fsd-bd8a-fsafasf",
"name": "XXXXX High + SCA",
"is_default": true,
"policy_compliance_status": "PASSED"
}],
"teams": [{
"team_id": 7685454,
"team_name": "rewrwe-rwerwer",
"guid": "rwerwerw-ecae-486c-a1b1-c92a81103787"
}],
"custom_fields": [{
"name": "XXXXX App ID",
"value": "rwwer"
}],
"description": "xxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXXxxxxxxxxxxxxxxxxxXXXXXX",
"settings": {
"nextday_consultation_allowed": false,
"static_scan_xpa_or_dpa": true,
"dynamic_scan_approval_not_required": false,
"sca_enabled": false
},
"business_criticality": "HIGH"
}
}
.png)
Hi @vsankar821763 (Community Member) , it's hard to know without seeing the contents of the field, but my guess is that whatever the actual text is in the Description field is causing a validation problem. That's an optional field so try omitting it and see if the create happens successfully.