Der offene Bauplan des Admins – eine Zeile in der Einrichtung
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/bauplaene \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/bauplaene"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/bauplaene', 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}/bauplaene",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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}/bauplaene"
req, _ := http.NewRequest("GET", 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.get("https://ki.muster.example/api/v1/mandanten/{id}/bauplaene")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/bauplaene")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"plan": {
"id": "<string>",
"goal": "<string>",
"createdAt": "<string>",
"laterAt": "<string>",
"steps": [
{
"id": "<string>",
"name": "<string>",
"line": "<string>",
"warum": "<string>",
"added": true,
"state": "eingerichtet",
"waitsFor": "<string>",
"way": {
"tool": "<string>",
"input": {}
},
"console": "<string>",
"docs": "<string>",
"outside": [
"<string>"
],
"budget": {
"clicks": 0,
"questions": 0
},
"soon": "<string>",
"app": true
}
],
"counts": {
"steps": 0,
"done": 0,
"outside": 0,
"soon": 0,
"setup": {
"done": 0,
"total": 0
}
},
"effort": {
"clicks": 0,
"questions": 0,
"outside": 0
},
"routes": [
"<string>"
],
"costs": [
"<string>"
],
"done": true,
"summary": "<string>",
"next": "<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"
}Der offene Bauplan des Admins – eine Zeile in der Einrichtung
Der offene Bauplan des Admins – eine Zeile in der Einrichtung.
Im Chat mit «Mono Admin»: mono_start.
GET
/
mandanten
/
{id}
/
bauplaene
Der offene Bauplan des Admins – eine Zeile in der Einrichtung
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/bauplaene \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/bauplaene"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/bauplaene', 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}/bauplaene",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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}/bauplaene"
req, _ := http.NewRequest("GET", 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.get("https://ki.muster.example/api/v1/mandanten/{id}/bauplaene")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/bauplaene")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"plan": {
"id": "<string>",
"goal": "<string>",
"createdAt": "<string>",
"laterAt": "<string>",
"steps": [
{
"id": "<string>",
"name": "<string>",
"line": "<string>",
"warum": "<string>",
"added": true,
"state": "eingerichtet",
"waitsFor": "<string>",
"way": {
"tool": "<string>",
"input": {}
},
"console": "<string>",
"docs": "<string>",
"outside": [
"<string>"
],
"budget": {
"clicks": 0,
"questions": 0
},
"soon": "<string>",
"app": true
}
],
"counts": {
"steps": 0,
"done": 0,
"outside": 0,
"soon": 0,
"setup": {
"done": 0,
"total": 0
}
},
"effort": {
"clicks": 0,
"questions": 0,
"outside": 0
},
"routes": [
"<string>"
],
"costs": [
"<string>"
],
"done": true,
"summary": "<string>",
"next": "<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"
}