Restore the shared default in one environment
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_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/org/applications/{application_id}/env-secrets/{secret_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/org/applications/{application_id}/env-secrets/{secret_key}/inherit \
--header 'Authorization: Bearer <token>'{
"inherited": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Applications
Restore the shared default in one environment
Remove only this environment override or suppression. Its next apply or deployment consumes the shared default if one exists. Secret values are never returned.
POST
/
org
/
applications
/
{application_id}
/
env-secrets
/
{secret_key}
/
inherit
Restore the shared default in one environment
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_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/org/applications/{application_id}/env-secrets/{secret_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/org/applications/{application_id}/env-secrets/{secret_key}/inherit \
--header 'Authorization: Bearer <token>'{
"inherited": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required organisation-owned environment. Empty or repeated values are refused.
Response
The environment override was removed.