Skip to main content
Solved

Upload project withFME Flow Rest API

  • March 10, 2025
  • 2 replies
  • 42 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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+8
  • Safer
  • 29 replies
  • 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
  • Author
  • Contributor
  • 1 reply
  • March 11, 2025

Perfect! Thankyou!