Skip to content

Add or replace a single .java file in the currently authenticated Vault. If the given file does not already exist in the Vault, it is added. If the file already exists in the Vault, the file is updated.

PUT/api/{version}/code
NameDescription
Acceptapplication/json (default)
Content-Typemultipart/form-data
NameDescription
file
required
The .java file you wish to add. Maximum allowed size is 1MB.
curl -X PUT -H "Authorization: {SESSION_ID}" \ https://veepharm.veevavault.com/api/v26.1/code -F "file=@C:\Vault\Extensions\com\veeva\vault\custom\actions\MyCustomAction.java" \
{ "responseStatus": "SUCCESS", "responseMessage": "Modified file", "url": "/api/v26.1/code/com.veeva.vault.custom.actions.MyCustomAction" }