Restore the shared plain value in one environment
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/env-values/{key}/inherit"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/applications/{application_id}/env-values/{key}/inherit \
--header 'Authorization: Bearer <token>'{
"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
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
/
api
/
v1
/
org
/
applications
/
{application_id}
/
env-values
/
{key}
/
inherit
Restore the shared plain value in one environment
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/env-values/{key}/inherit"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/applications/{application_id}/env-values/{key}/inherit \
--header 'Authorization: Bearer <token>'{
"inherited": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}