Restore the shared default in one environment (browser session)
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": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Applications
Restore the shared default in one environment (browser session)
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 (browser session)
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": "<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
Select an owned canonical application environment, including a planned environment. A legacy cluster ID is accepted only when it identifies one complete environment, or an unassigned legacy cluster. Mixed or partial aliases return 409; refresh and select the canonical ID. Empty or repeated values are refused. This selection is required.
Response
The environment override was removed.