Verbinden und testen
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/suite/connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"services": []
}'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/suite/connect"
payload = { "services": [] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({services: []})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/suite/connect', 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/connect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'services' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/suite/connect"
payload := strings.NewReader("{\n \"services\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/mandanten/{id}/suite/connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"services\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/suite/connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"services\": []\n}"
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>"
]
}
}
},
"tested": [
{
"id": "mail",
"ok": true,
"text": "<string>",
"item": "<string>",
"fix": "<string>",
"needs": "consent"
}
],
"switched": {
"from": "m365",
"rows": 4503599627370495,
"given": [
{
"id": "<string>",
"rows": [
{
"key": "<string>",
"name": "<string>",
"gone": true
}
],
"standard": true
}
]
}
}{
"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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Verbinden und testen
Verbinden und testen.
Im Chat mit «Mono Admin»: .
POST
/
mandanten
/
{id}
/
suite
/
connect
Verbinden und testen
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/suite/connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"services": []
}'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/suite/connect"
payload = { "services": [] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({services: []})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/suite/connect', 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/connect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'services' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/suite/connect"
payload := strings.NewReader("{\n \"services\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/mandanten/{id}/suite/connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"services\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/suite/connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"services\": []\n}"
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>"
]
}
}
},
"tested": [
{
"id": "mail",
"ok": true,
"text": "<string>",
"item": "<string>",
"fix": "<string>",
"needs": "consent"
}
],
"switched": {
"from": "m365",
"rows": 4503599627370495,
"given": [
{
"id": "<string>",
"rows": [
{
"key": "<string>",
"name": "<string>",
"gone": true
}
],
"standard": true
}
]
}
}{
"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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Body
application/json