Skip to main content

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?

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


Perfect! Thankyou!