Hey there,
I've been trying to practise a server migration, and so was building a workflow to move workflows between servers. However, whenever I try and download a workflow that lives in another private studio/subscription, I am told I'm unauthorised.
I've tested this on swagger and get the same result - despite apparently all other endpoints working (v1-v3)
I'm a curator, and have API access and can happily download workflows from my own private studio through swagger.
My understanding was that API access would grant me access to everything on the server, and I wouldn't want to batch through every private studio in order to download all my required workflows.
I'm on 2022.1.1
Am I misunderstanding the API, or is something else going on here?
Thanks!
Ollie
Solved! Go to Solution.
Hey @OllieClarke ,
My best bet is that you are using the workflow endpoint and must be inside the subscription for that to work.
Use the admin endpoint instead.
/admin/v1/{appId}/package
Best,
Fernando Vizcaino
@fmvizcaino knew I'd be doing something stupid. Thanks!
Not your fault. I don`t know if you remember, but in the previous versions, they had a separation between subscription API and admin API, and the differences were pretty straightforward.
Unfortunately, they didn`t document this part well enough.