Question:
Can a new draft of a document in my Vault be uploaded using the API?
Answer:
Yes, this is possible by using the following syntax in a command line:
$ curl -X POST -H "Authorization: {SESSION_ID}" \
-H "Content-Type: multipart/form-data" \
-F "file=EXAMPLE.pptx" \
-F "createDraft=uploadedContent" \
This can also be done using a tool such as Postman. Use the POST method, include the key type of file, and include the value of the selected document. It automatically creates the draft copy of the document as version 0.2.
Related Documentation:
Vault API Reference Documentation: Create Single Document Version
Send us your feedback: We are always looking for feedback to help improve our Knowledge Base! Please let us know if this article is helpful or provide feedback on how we can improve your experience by clicking here.