Hinzugefügten Anbieter entfernen, zurück auf Standard
curl --request DELETE \
--url https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"providers": [
{
"id": "<string>",
"kind": "<string>",
"name": "<string>",
"group": "local",
"endpoint": "<string>",
"locality": "lokal",
"localityLabel": "<string>",
"region": "<string>",
"models": {},
"dataClasses": [
"öffentlich"
],
"dataClassesCustomised": true,
"key": {
"kind": "<string>",
"name": "<string>"
},
"sovereign": true,
"source": "admin",
"enabled": true,
"status": "<string>",
"statusText": "<string>",
"health": {
"calls": 4503599627370495,
"availability": 123,
"errorRate": 123,
"p95Ms": 123,
"lastAt": "<string>",
"failing": true,
"failReason": "<string>",
"failCode": "<string>",
"failScope": "all",
"failModels": [
"<string>"
]
},
"urls": {
"embeddings": "<string>"
},
"account": "<string>",
"removable": true,
"awaitingTest": true,
"testedAt": "<string>",
"tools": {
"state": "yes",
"model": "<string>",
"at": "<string>",
"text": "<string>"
},
"lastTest": {
"at": "<string>",
"ok": true,
"text": "<string>",
"said": [
{
"code": "<string>",
"vars": {}
}
],
"by": "<string>",
"chat": {
"model": "<string>",
"ok": true,
"ms": 4503599627370495
},
"embeddings": {
"model": "<string>",
"ok": true,
"ms": 4503599627370495
}
},
"picked": {},
"voice": "<string>",
"standardFor": [
{
"task": "antworten",
"classes": [
"öffentlich"
]
}
],
"profiles": [
{
"model": "<string>",
"tasks": [
"antworten"
],
"facts": {}
}
],
"gateway": {
"wire": "openai",
"fact": {
"id": "<string>",
"name": "<string>"
},
"preset": "<string>",
"upstreams": [
"<string>"
],
"reported": "<string>",
"reportsUpstream": true,
"drift": {
"host": "<string>",
"at": "<string>"
},
"refused": {
"kind": "budget",
"at": "<string>"
},
"budgetReadable": true
}
}
],
"uncovered": [
"öffentlich"
]
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Hinzugefügten Anbieter entfernen, zurück auf Standard
Hinzugefügten Anbieter entfernen, zurück auf Standard.
Im Chat mit «Mono Admin»: .
DELETE
/
mandanten
/
{id}
/
providers
/
{pid}
Hinzugefügten Anbieter entfernen, zurück auf Standard
curl --request DELETE \
--url https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/providers/{pid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"providers": [
{
"id": "<string>",
"kind": "<string>",
"name": "<string>",
"group": "local",
"endpoint": "<string>",
"locality": "lokal",
"localityLabel": "<string>",
"region": "<string>",
"models": {},
"dataClasses": [
"öffentlich"
],
"dataClassesCustomised": true,
"key": {
"kind": "<string>",
"name": "<string>"
},
"sovereign": true,
"source": "admin",
"enabled": true,
"status": "<string>",
"statusText": "<string>",
"health": {
"calls": 4503599627370495,
"availability": 123,
"errorRate": 123,
"p95Ms": 123,
"lastAt": "<string>",
"failing": true,
"failReason": "<string>",
"failCode": "<string>",
"failScope": "all",
"failModels": [
"<string>"
]
},
"urls": {
"embeddings": "<string>"
},
"account": "<string>",
"removable": true,
"awaitingTest": true,
"testedAt": "<string>",
"tools": {
"state": "yes",
"model": "<string>",
"at": "<string>",
"text": "<string>"
},
"lastTest": {
"at": "<string>",
"ok": true,
"text": "<string>",
"said": [
{
"code": "<string>",
"vars": {}
}
],
"by": "<string>",
"chat": {
"model": "<string>",
"ok": true,
"ms": 4503599627370495
},
"embeddings": {
"model": "<string>",
"ok": true,
"ms": 4503599627370495
}
},
"picked": {},
"voice": "<string>",
"standardFor": [
{
"task": "antworten",
"classes": [
"öffentlich"
]
}
],
"profiles": [
{
"model": "<string>",
"tasks": [
"antworten"
],
"facts": {}
}
],
"gateway": {
"wire": "openai",
"fact": {
"id": "<string>",
"name": "<string>"
},
"preset": "<string>",
"upstreams": [
"<string>"
],
"reported": "<string>",
"reportsUpstream": true,
"drift": {
"host": "<string>",
"at": "<string>"
},
"refused": {
"kind": "budget",
"at": "<string>"
},
"budgetReadable": true
}
}
],
"uncovered": [
"öffentlich"
]
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}