Create Single Document Version

POST https://{{vaultDNS}}/api/{{version}}/objects/documents/:{doc_id}

https://developer.veevavault.com/api/24.2/#Create_Document_Version

Note: If you need to create more than one document version, it is best practice to use the bulk API.

Add a new draft version of an existing document. You can choose to either use the existing source file, or a new source file. These actions will increase the document’s minor version number. This is analogous to using the Create Draft action in the UI.

Note that not all documents are eligible for draft creation. For example, you cannot create a draft of a checked out document. Learn more in Vault Help.

Request Params

KeyDatatypeRequiredDescription
suppressRenditionnullSet to true to suppress automatic generation of the viewable rendition. If omitted, defaults to false

Request Body

[{"name"=>"createDraft", "value"=>"latestContent", "datatype"=>"string"}, {"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"description__v", "value"=>"", "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring
Acceptstring