Restore the shared plain value in one environment (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit"
headers = {"cookie": "ankra_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit \
--cookie ankra_session={
"inherited": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Applications
Restore the shared plain value in one environment (browser session)
Drop the selected environment’s own plain value of a key, set or turned off, so the shared default reaches it again on its next apply or deploy. Dropping a value the environment does not have changes nothing. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication plus the X-Ankra-CSRF double-submit header).
POST
/
org
/
applications
/
{application_id}
/
env-values
/
{key}
/
inherit
Restore the shared plain value in one environment (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit"
headers = {"cookie": "ankra_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}/inherit \
--cookie ankra_session={
"inherited": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}