I am working Alteryx API implementations using Python. i have executed all API endpoints(getting questions, executing the workflow, getting results of workflow, etc.) with the help of interactive api doc and Python.
I have stuck while Publishing workflow using API into another gallery(workflow migration). i am facing an issue -
{"data":null,"exceptionName":"BadRequestException","innerExceptionMessage":"","message":"Must specify subscription key (oauth_consumer_key parameter)."}'.
Earlier while i was executing other endpoints Alteryx never asked me for subscription key.
For publishing, i am using,
@JeffreyP and others Please help me to execute Publish endpoint? Could you please provide the artifacts(code/workflow) of the working prototype if you have?
Your reply is much appreciable.
Solved! Go to Solution.
You need to be passing the "oauth_consumer_key"
See this post for a reference...https://community.alteryx.com/t5/Dev-Space/Server-2018-4-POST-api-admin-v1-workflows-UnknownError/m-...
Hope this helps. If so, please mark as solved so others can find it on the community
Your reply much helpful and followed Thanks!
Now i am facing an another issue
{"data":null,"exceptionName":"UnknownException","innerExceptionMessage":"","message":"Unknown error.\\u000aIOException\\u000aRequestID: 82ff4537ef7046a3aee076b4e50bcdb4"}
What could be the reason?
I have used MultiPartEncoder from the requests_toolbelt of python that has resolved my issue.
@sricharan - Hey do you have a sample of the POST request in Python to send a file?