Dienst trennen – seine Tools verlassen den Mandanten-Server
curl --request DELETE \
--url https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service}"
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}/suite/services/{service}', 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}/suite/services/{service}",
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}/suite/services/{service}"
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}/suite/services/{service}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service}")
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{
"suite": {
"mandant": {
"id": "<string>",
"name": "<string>"
},
"provider": "m365",
"blocked": "<string>",
"discovery": {
"at": "<string>",
"via": "consent",
"sources": [
{
"id": "delegated",
"label": "<string>",
"ok": true,
"text": "<string>"
}
],
"consentAt": "<string>"
},
"services": [
{
"id": "mail",
"provider": "m365",
"name": "<string>",
"text": "<string>",
"state": "found",
"inTenant": "yes",
"tenantText": "<string>",
"permissions": [
{
"scope": "<string>",
"kind": "delegated",
"granted": true,
"use": "read",
"why": "<string>"
}
],
"missing": {
"read": [
"<string>"
],
"write": [
"<string>"
]
},
"broader": [
"<string>"
],
"application": [
"<string>"
],
"write": true,
"connected": {
"at": "<string>",
"by": "<string>"
},
"later": true,
"test": {
"at": "<string>",
"ok": true,
"summary": "<string>",
"reason": "<string>",
"fix": "<string>",
"by": "<string>"
},
"testText": "<string>",
"tools": [
{
"name": "<string>",
"title": "<string>",
"kind": "read",
"app": "<string>",
"available": true,
"reason": "<string>",
"reasonCode": "not-connected"
}
],
"kind": "tools",
"licences": 4503599627370495,
"needs": "mail"
}
],
"counts": {
"found": 4503599627370495,
"connected": 4503599627370495,
"failed": 4503599627370495,
"notGranted": 4503599627370495,
"later": 4503599627370495
},
"discoveryMissing": [
"<string>"
],
"personal": {
"connected": true,
"at": "<string>"
},
"people": 4503599627370495,
"canEdit": true,
"grant": {
"can": "yes",
"roles": [
"<string>"
],
"source": "directory",
"why": "no-sign-in",
"custom": {
"role": "<string>",
"outside": [
"<string>"
]
}
}
}
}{
"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"
}Dienst trennen – seine Tools verlassen den Mandanten-Server
Dienst trennen – seine Tools verlassen den Mandanten-Server.
Im Chat mit «Mono Admin»: .
DELETE
/
mandanten
/
{id}
/
suite
/
services
/
{service}
Dienst trennen – seine Tools verlassen den Mandanten-Server
curl --request DELETE \
--url https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service}"
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}/suite/services/{service}', 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}/suite/services/{service}",
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}/suite/services/{service}"
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}/suite/services/{service}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/suite/services/{service}")
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{
"suite": {
"mandant": {
"id": "<string>",
"name": "<string>"
},
"provider": "m365",
"blocked": "<string>",
"discovery": {
"at": "<string>",
"via": "consent",
"sources": [
{
"id": "delegated",
"label": "<string>",
"ok": true,
"text": "<string>"
}
],
"consentAt": "<string>"
},
"services": [
{
"id": "mail",
"provider": "m365",
"name": "<string>",
"text": "<string>",
"state": "found",
"inTenant": "yes",
"tenantText": "<string>",
"permissions": [
{
"scope": "<string>",
"kind": "delegated",
"granted": true,
"use": "read",
"why": "<string>"
}
],
"missing": {
"read": [
"<string>"
],
"write": [
"<string>"
]
},
"broader": [
"<string>"
],
"application": [
"<string>"
],
"write": true,
"connected": {
"at": "<string>",
"by": "<string>"
},
"later": true,
"test": {
"at": "<string>",
"ok": true,
"summary": "<string>",
"reason": "<string>",
"fix": "<string>",
"by": "<string>"
},
"testText": "<string>",
"tools": [
{
"name": "<string>",
"title": "<string>",
"kind": "read",
"app": "<string>",
"available": true,
"reason": "<string>",
"reasonCode": "not-connected"
}
],
"kind": "tools",
"licences": 4503599627370495,
"needs": "mail"
}
],
"counts": {
"found": 4503599627370495,
"connected": 4503599627370495,
"failed": 4503599627370495,
"notGranted": 4503599627370495,
"later": 4503599627370495
},
"discoveryMissing": [
"<string>"
],
"personal": {
"connected": true,
"at": "<string>"
},
"people": 4503599627370495,
"canEdit": true,
"grant": {
"can": "yes",
"roles": [
"<string>"
],
"source": "directory",
"why": "no-sign-in",
"custom": {
"role": "<string>",
"outside": [
"<string>"
]
}
}
}
}{
"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"
}