Skip to content

Validate a VPK package with Vault Java SDK code attached to this request. This checks checks code compilation and restrictions in use of the JDK. For example, new is not allowed for non-allowlisted classes. Learn more about limits and restrictions.

This endpoint does not import your package.

POST/api/{version}/services/package/actions/validate
NameDescription
Acceptapplication/json (default)

The body of your request is the binary VPK file you wish to validate.

curl -X POST -H "Authorization: {SESSION_ID}" \ https://veepharm.veevavault.com/api/v19.3/services/package/actions/validate --data-binary @"C:\Vault\Extensions\javasdk.vpk" \
{ "responseStatus": "SUCCESS", "responseDetails": { "summary": "PromoMats RecordTrigger", "author": "stan.lee@veepharma.com", "package_name": "PKG-DEPLOY", "source_vault": "19523", "package_status": "N/A", "total_steps": 1, "start_time": "18:09:2018 05:01:19", "end_time": "18:09:2018 05:01:20", "package_error": "", "package_steps": [ { "name__v": "00010", "step_type__v": "Code", "step_label__v": "Java SDK Code", "step_name__v": "Java SDK Code", "type__v": "Code", "deployment_status__v": "N/A", "deployment_action": "Replace All", "validation_response": "SUCCESS", "validation_message": "Source code in (PKG-DEPLOY) validated successfully." } ] } }