CS REST API: How do you upload a newer version of a file?
Options
Comments
-
Make a
POST
to.../nodes/{node_id}/versions
with thefile
parameter containing the file content, using themultipart/form-data
content type. For example:var file = ..., // from a file input element. for example formData = new FormData(); formData.append('file', file); $.ajax({ url: '.../api/v1/nodes/12345/versions', type: 'POST', data: formData, processData: false, contentType: false });
You will find the new version number in the response, is the upload succeeds. For example:
{ "id": 12345, "version_number": 2 }
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 102 General Questions
- 123 Services
- 40 OpenText Hackathon
- 33 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 901 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 127 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax