import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}"
payload = { "value": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>"
}
'{
"key": "<string>",
"required": true,
"status": "set",
"updated_at": "<string>",
"updated_by": "<string>",
"source": "shared"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Set Application Env Secret
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}"
payload = { "value": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>"
}
'{
"key": "<string>",
"required": true,
"status": "set",
"updated_at": "<string>",
"updated_by": "<string>",
"source": "shared"
}{
"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 exactly one organisation-owned environment. Omit only for legacy shared catalogue management or application-wide apply. Empty or repeated values are refused.
Body
The value to store for one environment secret. It is write-only: it is never echoed by this response, returned by any read, or written to a log.
Response
The catalogued key after the write. It carries no value.
One key of an application's -env Secret. The stored value is never part of this model - no endpoint on this surface returns one.
True when the application's committed manifests read this key through a secretKeyRef.
Configured, missing from secret storage, explicitly disabled in this environment, or unverified because storage could not be read. Scoped reads never turn a store outage into configured.
set, value_missing, disabled, unknown Present on environment-scoped reads and writes. Shared values are inherited; environment values override only this target.
shared, environment