Environment delete api and how to change current environment.
we have environment apis to create and get details. but we dont have delete api? if we we are not showing more than 2 environment in UI why do we need these apis?
I have created one new environment and that is set as current environment automatically am getting this new env when it try to get current env with /enviroments/me api
8 Replies
hi @prathap_14114
which environment key you are using to fetch current environment?
I used the one shown from UI, which is refered to newly created environment,,
its little confusing, let me explain.
created new organization has development and production environment by default
then created new env using development api key. if i use api key with newly created env then its giving that as current env , which is expected .
but when I change to other organization and come back to by default its showing newly created env instead of development in UI. I need to click on development button to switch to development env.
we don't have delete evn api to delete that newly created env for testing purpose.
@Pawan Jain are you guys have any plan to provide delete api? or showing multiple environment on UI?
Any way I have manually deleted that extra created environment from database.
Hi @prathap_14114
No, we are not planning to show multiple environments in the UI
I think we can add delete environment api
okay. Thanks
@prathap_14114, you just advanced to level 4!
#update environment API not available despite being documented
i put a message there, and just to show my interest in the one too.
i can't find a way to update or delete a messy env. i'm ok with any approach though, but at the moment i'm unable of doing any
cc @Support
Hi @Obscene Burrito
We decided internally that we will not support environment deletion api