Update organisation settings
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_id}"
payload = {
"name": "<string>",
"slug": "<string>",
"auto_upgrade_agent": True,
"proactive_ai_insights_enabled": True,
"ai_insight_high_restart_threshold": 123,
"ai_insight_high_restart_recency_hours": 123,
"ai_insight_exclude_system_namespaces": True,
"mfa_required": True,
"security_baseline_enabled": True,
"standard_changes_enabled": True,
"public_canvas_publishing": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
slug: '<string>',
auto_upgrade_agent: true,
proactive_ai_insights_enabled: true,
ai_insight_high_restart_threshold: 123,
ai_insight_high_restart_recency_hours: 123,
ai_insight_exclude_system_namespaces: true,
mfa_required: true,
security_baseline_enabled: true,
standard_changes_enabled: true,
public_canvas_publishing: '<string>',
reason: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/{organisation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/org/organisation/{organisation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"auto_upgrade_agent": true,
"proactive_ai_insights_enabled": true,
"ai_insight_high_restart_threshold": 123,
"ai_insight_high_restart_recency_hours": 123,
"ai_insight_exclude_system_namespaces": true,
"mfa_required": true,
"security_baseline_enabled": true,
"standard_changes_enabled": true,
"public_canvas_publishing": "<string>",
"reason": "<string>"
}
'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Update organisation settings
Changes the organisation’s settings: its name and slug, the agent auto-upgrade switch, proactive AI insights and their thresholds, the MFA requirement, the security baseline, standard changes and public canvas publishing. Fields left out are unchanged; an explicit null on a threshold restores the platform default. The change is audited as update_organisation with the optional reason. Requires organisation.manage, checked against the token’s scopes and then against the member’s role whatever the authorisation rollout state; the path must name the organisation the token acts in (its own, or the X-Ankra-Organisation-Id override), and a token pinned to a project is refused, since the setting has no per-project form.
PATCH
/
api
/
v1
/
org
/
organisation
/
{organisation_id}
Update organisation settings
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_id}"
payload = {
"name": "<string>",
"slug": "<string>",
"auto_upgrade_agent": True,
"proactive_ai_insights_enabled": True,
"ai_insight_high_restart_threshold": 123,
"ai_insight_high_restart_recency_hours": 123,
"ai_insight_exclude_system_namespaces": True,
"mfa_required": True,
"security_baseline_enabled": True,
"standard_changes_enabled": True,
"public_canvas_publishing": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
slug: '<string>',
auto_upgrade_agent: true,
proactive_ai_insights_enabled: true,
ai_insight_high_restart_threshold: 123,
ai_insight_high_restart_recency_hours: 123,
ai_insight_exclude_system_namespaces: true,
mfa_required: true,
security_baseline_enabled: true,
standard_changes_enabled: true,
public_canvas_publishing: '<string>',
reason: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/{organisation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/org/organisation/{organisation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"auto_upgrade_agent": true,
"proactive_ai_insights_enabled": true,
"ai_insight_high_restart_threshold": 123,
"ai_insight_high_restart_recency_hours": 123,
"ai_insight_exclude_system_namespaces": true,
"mfa_required": true,
"security_baseline_enabled": true,
"standard_changes_enabled": true,
"public_canvas_publishing": "<string>",
"reason": "<string>"
}
'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Headers
Body
application/json