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":

https://developer.opentext.com/ce/products/extended-ecm/documentation/content-server-rest-api-quick-start-guide/6

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

This discussion has been closed.