Delete an OpenAI-compatible model server
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true,
"cascaded_model_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Settings
Delete an OpenAI-compatible model server
Deletes an endpoint together with the catalog models it served, reporting how many models went with it. Requires the ai.manage permission.
DELETE
/
api
/
v1
/
org
/
ai-settings
/
endpoints
/
{endpoint_id}
Delete an OpenAI-compatible model server
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/ai-settings/endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true,
"cascaded_model_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.