Add or Replace Single Source Code File

PUT https://{{vaultDNS}}/api/{{version}}/code

https://developer.veevavault.com/api/21.3/#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.

We do not recommend using the following endpoint to deploy code as you may introduce code which breaks existing deployed code. For best practices, use the VPK Deploy method.

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Acceptstring
Content-Typestring