Assistenten löschen
curl --request DELETE \
--url https://app.famulor.de/api/user/assistant/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/assistant/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/assistant/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/assistant/{id}",
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://app.famulor.de/api/user/assistant/{id}"
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))
}{
"message": "Assistant deleted successfully"
}
{
"message": "Assistant not found or does not belong to the authenticated user"
}
{
"message": "Assistant deletion failed"
}
Assistenten löschen
Einen spezifischen KI-Assistenten permanent löschen
DELETE
/
api
/
user
/
assistant
/
{id}
Assistenten löschen
curl --request DELETE \
--url https://app.famulor.de/api/user/assistant/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/assistant/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/assistant/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/assistant/{id}",
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://app.famulor.de/api/user/assistant/{id}"
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))
}{
"message": "Assistant deleted successfully"
}
{
"message": "Assistant not found or does not belong to the authenticated user"
}
{
"message": "Assistant deletion failed"
}
Dieser Endpunkt ermöglicht es dir, einen KI-Assistenten permanent zu löschen, der dem authentifizierten Benutzer gehört.
Path Parameter
integer
erforderlich
Die eindeutige Kennung des zu löschenden Assistenten
Response
string
Bestätigungsnachricht, dass der Assistent erfolgreich gelöscht wurde
Fehler-Responses
string
Fehlermeldung, wenn der Assistent nicht gefunden wurde oder nicht dem authentifizierten Benutzer gehört
Hinweise
- Nur Assistenten, die dem authentifizierten Benutzer gehören, können gelöscht werden
- Sobald ein Assistent gelöscht wurde, kann er nicht wiederhergestellt werden
- Diese Aktion entfernt den Assistenten und seine gesamte Konfiguration permanent
- Wenn der Assistent gerade aktive Anrufe bearbeitet, können diese Anrufe beeinträchtigt werden
{
"message": "Assistant deleted successfully"
}
{
"message": "Assistant not found or does not belong to the authenticated user"
}
{
"message": "Assistant deletion failed"
}
Passende Seiten: Introduction und Authentication Guide und API Integration Examples.