Does anyone have an example of migrating workflows between Alteryx servers with Powershell 5.1? Specifically, I'm looking for an example of how to format the Multipart/Form-Data request to upload a workflow to the destination server (the Post /admin/v1/workflows/ endpoint).
Solved! Go to Solution.
I did, and specify values for both but not even able to retrieve collections, a simple function indeed. Does API calls require admin login or curator good enough?
$accessToken = invoke-restmethod -uri $baseaddress/oauth2/token -method POST -body $tokenRequestBody
$headers = @{
'Authorization' = 'Bearer ' + $accessToken
}
$collections = Invoke-RestMethod -Uri $baseaddress/v3/workflows -Method GET --header $headers
Curator or Artisan? documentation says Curator is good enough - but some things will require Admin... my memory is that it's better to be an admin for most of these things?
Hi Guru, not sure where I missed out, but ran the code successfully with key/secret, no workflow uploaded. Any idea why?
No response when running $collections ?
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |