https://prefect.io logo
Title
l

Leela Surya Teja Mangamuri

04/07/2023, 12:18 AM
I am trying to create a new account role in prefect cloud using https://app.prefect.cloud/api/docs#tag/Account-Roles/operation/create_account_role_api_accounts__account_id__account_roles__post. However, I am getting this message as response "detail": "\n Marvin says: Oh good. You're creating errors already.\n I know you're excited about Cloud 2.0 but could you be a little more careful? Or not.\n I'll just be here. Brain the size of a planet and they've got me cleaning up after you.\n Shoot me an email with subject line '418' at marvin@prefect.io for some swag.\n". Can some one from @Prefect look at this?
w

Will Raphaelson

04/07/2023, 12:50 AM
Hi @Leela Surya Teja Mangamuri, sorry about that, this was an experimental route that we actually wont be using. Creation of roles will be restricted to the creation of custom workspace roles for the time being. Feel free to DM me if you have a use case that requires custom account roles and we can chat.
l

Leela Surya Teja Mangamuri

04/07/2023, 12:51 AM
what does the parameter any_ mean? It says prefect filter criteria.
w

Will Raphaelson

04/07/2023, 12:57 AM
Any is a keyword in the payload that just specifies that roles that match any of the provided strings will be returned.
I believe if you leave it blank all are returned. I can give it a shot tomorrow.
l

Leela Surya Teja Mangamuri

04/07/2023, 12:59 AM
Yes. Please give me a correct update on it tomorrow
w

Will Raphaelson

04/07/2023, 1:00 AM
May I ask what you’re trying to do? there are two account roles generally speaking which are documented here https://docs.prefect.io/latest/ui/roles/
Yeah you can hit the post filter endpoint with no filter payload and it’ll return all account roles