How to use /v2/nodes/{id}/versions
I am trying to figure out how to use above method trying to connect to OpenText. We intend to upload a new version of an already existing file.
Checking out this link under "Add version":
It is stated that "If your REST client does not support file uploads, you will need to specify additional information in the body" one should use following in the body:
file=<full pathname>; file_content_type=<mime type>;file_filename=<filename>
I assume above is what I should use since we don't support file uploads. Now, it doesn't make sense since it should be enough specifying the ID for the target. But semantically that is what is specified.
As a starter, only "file" is specified for the description of the method in the API specification/swagger. So feels a bit strange to use parameters not specified. Anyhow…
I do understand that I should use body={} format. But please correct me if I am wrong.
Shortly: How should I use this method? An example would be great!
Answers
-
I moved your post @NiklasGJ , thank you
0 -
Closed; duplicate of
1
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 146 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 179 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories