Get organisation security settings
import requests
url = "https://platform.ankra.app/api/v1/org/security/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/security/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/security/settings \
--header 'Authorization: Bearer <token>'{
"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": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Get organisation security settings
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
/
api
/
v1
/
org
/
security
/
settings
Get organisation security settings
import requests
url = "https://platform.ankra.app/api/v1/org/security/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/security/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/security/settings \
--header 'Authorization: Bearer <token>'{
"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": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
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.