Update organisation security settings (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/settings"
payload = {
"critical_fix_days": 183,
"high_fix_days": 183
}
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({critical_fix_days: 183, high_fix_days: 183})
};
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 PUT \
--url https://api.platform.ankra.app/org/security/settings \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"critical_fix_days": 183,
"high_fix_days": 183
}
'{
"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": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Update organisation security settings (browser session)
Sets the organisation’s fix deadlines in days, both required, each 1 to 365, and records the change in the audit log. A caller confined to one project is refused. Requires security.manage.
PUT
/
org
/
security
/
settings
Update organisation security settings (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/settings"
payload = {
"critical_fix_days": 183,
"high_fix_days": 183
}
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({critical_fix_days: 183, high_fix_days: 183})
};
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 PUT \
--url https://api.platform.ankra.app/org/security/settings \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"critical_fix_days": 183,
"high_fix_days": 183
}
'{
"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": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Body
application/json
Response
The fix deadlines as stored.
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.