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 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.
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.