Rest API instance
Private restAPICreate a new version for a document in Veeva
// 'uploadedContent' - Update the contents of the document by uploading a file
const service = new VeevaService(credentials)
await service.document.version.create(
2000, 'uploadedContent', { file: 'updated_document.zip' }
)
// 'latestContent' - Keep the current document content, and release a new version
const service = new VeevaService(credentials)
await service.document.version.create(2000, 'latestContent', { name__v: 'Updated Name' })
Response from Veeva
Id of the document
Define which draft content to use
Optional data: IDocumentWithFileDocument data to update
Delete a document version from Veeva.
const service = new VeevaService(credentials)
await service.document.version.delete(2000, 0, 1)
Response from Veeva
Id of the document
Major version of the document
Minor version of the document
Update a specific document version in Veeva.
const service = new VeevaService(credentials)
await service.document.version.update(2000, 0, 1, { name__v: 'Updated Name' })
Response from Veeva
Id of the document
Major version of the document
Minor version of the document
Document data to update
Generated using TypeDoc
Class which communicates with Veeva to manage document versions on the platform.