Hello, I am trying to a create a api_key for the e...
# prefect-cloud
l
Hello, I am trying to a create a api_key for the existing service account. I am using this api call https://api.prefect.cloud/api/users/{id}/api_keys. {id} is the service_account_id. But I am getting the 404 error
1
s
Double check the service account id is valid with reading the account id and seeing if the necessary permissions exist. To create an api key, here is a rest api call for that
l
Thank you. I resolved it. In prefect 2.0 there is only one api_key associated with the service account. New api_key cannot be created for the service account.
1
@Sahil Rangwala while creating the service account there is a parameter account_role_id(admin,member). How to get this? Is this static?