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?
Solved
Upload project withFME Flow Rest API
Best answer by dylan.at.safe
Hi
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.
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.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.


