Set an application plain value (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}"
payload = { "value": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({value: '<string>'})
};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key} \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"value": "<string>"
}
'{
"key": "<string>",
"value": "<string>",
"source": "shared",
"status": "set",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": {
"user_id": "<string>",
"name": "<string>"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Applications
Set an application plain value (browser session)
Store one plain value: the shared default, or with environment_id that environment's own value. The value is kept in the row as text and returned by reads, so it must not be a credential: a name or a value that looks like one is refused unless confirm_plain is true. It reaches the workload through the same <app>-env Secret as the secrets, on the next env-secrets apply or deploy. 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).
PUT
/
org
/
applications
/
{application_id}
/
env-values
/
{key}
Set an application plain value (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}"
payload = { "value": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({value: '<string>'})
};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://api.platform.ankra.app/org/applications/{application_id}/env-values/{key} \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"value": "<string>"
}
'{
"key": "<string>",
"value": "<string>",
"source": "shared",
"status": "set",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": {
"user_id": "<string>",
"name": "<string>"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
Body
application/json
Response
The plain value after the write.
One plain key of an application as it resolves in the scope read. Unlike a secret, the value is returned.