Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Trying to load a workflow and run that from postman but getting 415 error

malabika_guha_wf
6 - Meteoroid

Trying to load a workflow and run that from postman but getting 415 error like unsupported media type. Need help for that p

5 REPLIES 5
gabrielvilella
14 - Magnetar

Please mention what is the API call that you are submitting that is responding with that error. If it's for the post to upload the workflow, you need to upload a .yxzp file. 

malabika_guha_wf
6 - Meteoroid

I am using Gallery api only and was trying to replicate the same in postman which I have done in swagger . Currently I am using .yxzp file only but may be I have to use some more parameters I am not sure about the settings in postman to post a workflow. If you could guide me on the same.

Preethi_1987
5 - Atom

Hi, Thanks for your reply on the post. we are trying to replicate the Alteryx Swagger API (calling the Gallery API, Get, Post & Put workflows) in postman. We are able to get the workflows using postman, but not be able to post the workflow. though we have used the JSON payload to post. we are getting unsupported media type error. any help would be much appreciated.

gabrielvilella
14 - Magnetar

I am not sure if you already checked the documentation, but this could be a great starting point.

How to use postman with Server APIs https://help.alteryx.com/20221/server/how-use-postman 

Upload a new workflow endpoint https://help.alteryx.com/20221/server/workflow-endpoints 

Preethi_1987
5 - Atom

Hi Thanks for shared the document, I am able to resolve the issue. the solution is to change the Body to Form and text to file. we have to provide the required Key & Values from Swagger. Thanks again to share the above url's.