Check-in a document into Vault using API
AnsweredHi,
I am trying to check out and check in a document using Vault API. So I have created a lock and downloaded the document using API and now I want to check in the document using API and remove the lock. But I am unable to get the proper API to check in the document.
Can you please do the needful on this.
Regards,
Sai Satvik Mamidi.
-
Official comment
Hi,
In order to achieve this you need to use 2 API calls. The first is to delete the document lock. This is only available for single document processing so be aware of how it's used and how it will affect your API burst limit.
https://developer.veevavault.com/api/22.1/#delete-document-lock
https://developer.veevavault.com/docs/#api-rate-limitsThe second is to create a new draft. This will essentially up-version the existing document.
https://developer.veevavault.com/api/22.1/#create-single-document-versionIf this process is a part of an integration, I would recommend using updating multiple document versions:
https://developer.veevavault.com/api/22.1/#create-multiple-document-versions
Please sign in to leave a comment.
Comments
1 comment