Skip to main content
Solved

Upload project withFME Flow Rest API


william_sweco
Contributor
Forum|alt.badge.img+2

I am trying to upload a project to FME Flow using REST API V3. The curl command is blank in the documentation. I have tried to configure a command based on the documentation and other (working) commands, but I have not had much success. Does anyone have an example of a working command to upload a .fsproject file?

Best answer by dylan.at.safe

Hi ​@william_sweco

Here are a couple examples. The first is what was given to me by postman. The second request is what worked in PowerShell. 

curl --location 'http://localhost/fmerest/v3/projects/import/upload?Content-Disposition=attachment%3B%20filename%3D%22Dual_WorkSpace.fsproject%22&disableProjectItems=false&importMode=INSERT&PauseNotifications=true&projectsImportMode=INSERT' \
--header 'Authorization: fmetoken token=<Your token here>' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@/C:/Users/dylan/Downloads/Dual_WorkSpace.fsproject'
 curl.exe --location "http://localhost/fmerest/v3/projects/import/upload?disableProjectItems=false&importMode=INSERT&PauseNotifications=true&projectsImportMode=INSERT" --header "Authorization: fmetoken token=<Your Token Here>" --header "Content-Type: application/octet-stream" --data-binary "@C:\Users\dylan\Downloads\Dual_WorkSpace.fsproject"

— Dylan

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

dylan.at.safe
Safer
Forum|alt.badge.img+7
  • Safer
  • Best Answer
  • March 10, 2025

Hi ​@william_sweco

Here are a couple examples. The first is what was given to me by postman. The second request is what worked in PowerShell. 

curl --location 'http://localhost/fmerest/v3/projects/import/upload?Content-Disposition=attachment%3B%20filename%3D%22Dual_WorkSpace.fsproject%22&disableProjectItems=false&importMode=INSERT&PauseNotifications=true&projectsImportMode=INSERT' \
--header 'Authorization: fmetoken token=<Your token here>' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@/C:/Users/dylan/Downloads/Dual_WorkSpace.fsproject'
 curl.exe --location "http://localhost/fmerest/v3/projects/import/upload?disableProjectItems=false&importMode=INSERT&PauseNotifications=true&projectsImportMode=INSERT" --header "Authorization: fmetoken token=<Your Token Here>" --header "Content-Type: application/octet-stream" --data-binary "@C:\Users\dylan\Downloads\Dual_WorkSpace.fsproject"

— Dylan


william_sweco
Contributor
Forum|alt.badge.img+2

Perfect! Thankyou!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings