Set the personal AI keys policy
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/personal-keys"
payload = { "allowed": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({allowed: true})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/ai-settings/personal-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed": true
}
'{
"allowed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Settings
Set the personal AI keys policy
Allows or stops the organisation’s work running on its members’ own AI keys. Members keep their keys either way. Requires an organisation administrator, and a token whose scopes carry ai.manage.
PUT
/
api
/
v1
/
org
/
ai-settings
/
personal-keys
Set the personal AI keys policy
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/personal-keys"
payload = { "allowed": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({allowed: true})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/ai-settings/personal-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed": true
}
'{
"allowed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
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.