The API documentation and the REST API training manual are very interesting to help in this case.
Please, tell us the solution or not your Question.
Thanks,
Danilo
I do it using the following API endpoint:
http:///fmerest/v3/resources/connections //filesys/
Notice the "filesys" part between the resource name and the filename.And I'm also using the following headers:
Authorization: fmetoken token=...Accept: application/octet-stream
Note that I do not put the token in the URL.