Skip to content

Add or Replace Single Source Code File

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
curl -X PUT -H "Authorization: {SESSION_ID}" \ https://veepharm.veevavault.com/api/v22.2/code -F "file=@C:\Vault\Extensions\com\veeva\vault\custom\actions\MyCustomAction.java" \
{ "responseStatus": "SUCCESS", "responseMessage": "Modified file", "url": "/api/v22.2/code/com.veeva.vault.custom.actions.MyCustomAction" }