Solved

Upload Files with Flow REST API


Badge +7

Hi, 

is it possible to upload a file to the FME Flow shared resource folder through the Flow REST API? I tried to setup a POST request for fmerest/v3/resources/connections/<resource>/filesys/<path> but get a 415 Unsupported Media Type Response. I used the following parameters in Postman:

In this example I want to upload the text file “test.txt” to the shared resource folder “Test”. 

Is there a problem with the request, or is this the wrong approach for uploading a file via the REST API? The goal would be to provide a means for external applications to upload files that are then processed by FME Flow. Thank you for your help!

icon

Best answer by hkingsbury 10 July 2024, 01:36

View original

2 replies

Userlevel 6
Badge +36

The below screenshot is working for me:
 

Using basic auth under the Authorization tab

Badge +7

Hi @hkingsbury, after changing the URL and body the request is working for me as well. Thank you!

Reply