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,
- .yxzp extended workflow as a example
- URL - gallery/api/admin/v1/workflows/
- admin API key & secret are used
- passing file to upload in the files attribute in the requests.post method (e.g resp = requests.post(url, files ={'logo': file_to_publish}, headers = {
'Content-Type': 'multipart/form-data','Accept': 'application/xml'})) - payload is file_to_publish
@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.