vsankar821763 (Community Member) asked a question.

I ues the https://api.veracode.com/appsec/v1/applications to create application on demand .for a particular payload fails

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"

  }

}

 

 

 


  • 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.

Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.