Get organisation security settings (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/settings"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/security/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/security/settings \
--cookie ankra_session={
"critical_fix_days": 183,
"high_fix_days": 183,
"is_default": true,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Get organisation security settings (browser session)
Returns the organisation’s fix deadlines: the days a critical and a high issue may stay open before the Security Dashboard reports it past its deadline, the platform defaults (30 and 90) until the organisation sets its own. Requires security.read.
GET
/
org
/
security
/
settings
Get organisation security settings (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/settings"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/security/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/security/settings \
--cookie ankra_session={
"critical_fix_days": 183,
"high_fix_days": 183,
"is_default": true,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Response
The fix deadlines in force.
The organisation's fix deadlines in days. is_default is true while the organisation has set neither, and updated_at is null until it changes a setting.