Set the personal AI keys policy (browser session)
import requests
url = "https://api.platform.ankra.app/org/ai-settings/personal-keys"
payload = { "allowed": True }
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({allowed: true})
};
fetch('https://api.platform.ankra.app/org/ai-settings/personal-keys', 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/ai-settings/personal-keys \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"allowed": true
}
'{
"allowed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Settings
Set the personal AI keys policy (browser session)
Allows or stops the organisation’s work running on its members’ own AI keys. Members keep their keys either way. Requires the CSRF token and an organisation administrator.
PUT
/
org
/
ai-settings
/
personal-keys
Set the personal AI keys policy (browser session)
import requests
url = "https://api.platform.ankra.app/org/ai-settings/personal-keys"
payload = { "allowed": True }
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({allowed: true})
};
fetch('https://api.platform.ankra.app/org/ai-settings/personal-keys', 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/ai-settings/personal-keys \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"allowed": true
}
'{
"allowed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Body
application/json
Whether the organisation's work may run on its members' own AI keys.
Response
The stored policy
Whether the organisation's work may run on its members' own AI keys.