KI-Client widerrufen
curl --request POST \
--url https://ki.muster.example/api/v1/clients/{id}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/clients/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/clients/{id}/revoke', 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/clients/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/clients/{id}/revoke"
req, _ := http.NewRequest("POST", 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.post("https://ki.muster.example/api/v1/clients/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/clients/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"client": {
"id": "<string>",
"mandantId": "<string>",
"knownId": "<string>",
"name": "<string>",
"provider": "<string>",
"region": "<string>",
"trainsOnData": true,
"status": "pending",
"groups": "all",
"dataClasses": [
"öffentlich"
],
"requestedAt": "<string>",
"consents": 4503599627370495,
"training": "plan",
"requestedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedAt": "<string>",
"inAdvance": true,
"atConnect": true,
"standard": true,
"revoked": true,
"tools": [
"<string>"
],
"platform": {
"settings": {
"hosting": "selbst",
"provider": "anthropic",
"region": "<string>",
"modelIdPrefix": "<string>",
"account": "<string>",
"gateway": "<string>"
},
"where": "<string>",
"zone": "eu",
"receives": [
"öffentlich"
],
"confidential": true,
"actsFor": [
{
"id": "<string>",
"name": "<string>"
}
],
"waiting": 4503599627370495,
"calls": 4503599627370495,
"confirmed": {
"by": "<string>",
"at": "<string>"
},
"connectUrl": "<string>",
"gateway": "missing"
}
}
}{
"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"
}KI-Client widerrufen
KI-Client widerrufen.
Im Chat mit «Mono Admin»: .
POST
/
clients
/
{id}
/
revoke
KI-Client widerrufen
curl --request POST \
--url https://ki.muster.example/api/v1/clients/{id}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/clients/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/clients/{id}/revoke', 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/clients/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/clients/{id}/revoke"
req, _ := http.NewRequest("POST", 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.post("https://ki.muster.example/api/v1/clients/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/clients/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"client": {
"id": "<string>",
"mandantId": "<string>",
"knownId": "<string>",
"name": "<string>",
"provider": "<string>",
"region": "<string>",
"trainsOnData": true,
"status": "pending",
"groups": "all",
"dataClasses": [
"öffentlich"
],
"requestedAt": "<string>",
"consents": 4503599627370495,
"training": "plan",
"requestedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedAt": "<string>",
"inAdvance": true,
"atConnect": true,
"standard": true,
"revoked": true,
"tools": [
"<string>"
],
"platform": {
"settings": {
"hosting": "selbst",
"provider": "anthropic",
"region": "<string>",
"modelIdPrefix": "<string>",
"account": "<string>",
"gateway": "<string>"
},
"where": "<string>",
"zone": "eu",
"receives": [
"öffentlich"
],
"confidential": true,
"actsFor": [
{
"id": "<string>",
"name": "<string>"
}
],
"waiting": 4503599627370495,
"calls": 4503599627370495,
"confirmed": {
"by": "<string>",
"at": "<string>"
},
"connectUrl": "<string>",
"gateway": "missing"
}
}
}{
"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"
}