«Verbinden»: Zeilen an- oder abwählen, den Plan einmal bestätigen, einen freiwilligen Schritt nach live auslassen
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"picked": {},
"confirm": true
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}"
payload = {
"picked": {},
"confirm": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({picked: {}, confirm: true})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}', 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}/connect-plans/{pid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'picked' => [
],
'confirm' => true
]),
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}/connect-plans/{pid}"
payload := strings.NewReader("{\n \"picked\": {},\n \"confirm\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"picked\": {},\n \"confirm\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"picked\": {},\n \"confirm\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"text": "<string>",
"rows": [
{
"id": "<string>",
"said": "<string>",
"name": "<string>",
"way": "recipe",
"ref": "<string>",
"needs": [
"address"
],
"place": "systems",
"picked": true,
"state": "proposed",
"action": "ask",
"reason": "<string>",
"system": "<string>",
"research": {
"at": "<string>",
"source": "<string>",
"tried": 123,
"found": {
"kind": "<string>",
"address": "<string>",
"operations": 123,
"auth": "<string>",
"via": "address"
},
"doc": {
"title": "<string>",
"endpoints": 123,
"auth": "<string>"
}
},
"steps": [
{
"id": "where",
"state": "open",
"action": "find",
"facts": {},
"reason": "<string>",
"cards": [
{
"title": "<string>",
"kind": "read",
"mark": "<string>",
"ms": 123,
"note": "<string>"
}
]
}
],
"soon": {
"text": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
}
}
],
"by": "rules",
"createdAt": "<string>",
"confirmedAt": "<string>",
"done": true,
"canEdit": 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»: Zeilen an- oder abwählen, den Plan einmal bestätigen, einen freiwilligen Schritt nach live auslassen
«Verbinden»: Zeilen an- oder abwählen, den Plan einmal bestätigen, einen freiwilligen Schritt nach live auslassen.
Im Chat mit «Mono Admin»: .
PATCH
/
mandanten
/
{id}
/
connect-plans
/
{pid}
«Verbinden»: Zeilen an- oder abwählen, den Plan einmal bestätigen, einen freiwilligen Schritt nach live auslassen
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"picked": {},
"confirm": true
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}"
payload = {
"picked": {},
"confirm": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({picked: {}, confirm: true})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}', 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}/connect-plans/{pid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'picked' => [
],
'confirm' => true
]),
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}/connect-plans/{pid}"
payload := strings.NewReader("{\n \"picked\": {},\n \"confirm\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"picked\": {},\n \"confirm\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/connect-plans/{pid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"picked\": {},\n \"confirm\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"text": "<string>",
"rows": [
{
"id": "<string>",
"said": "<string>",
"name": "<string>",
"way": "recipe",
"ref": "<string>",
"needs": [
"address"
],
"place": "systems",
"picked": true,
"state": "proposed",
"action": "ask",
"reason": "<string>",
"system": "<string>",
"research": {
"at": "<string>",
"source": "<string>",
"tried": 123,
"found": {
"kind": "<string>",
"address": "<string>",
"operations": 123,
"auth": "<string>",
"via": "address"
},
"doc": {
"title": "<string>",
"endpoints": 123,
"auth": "<string>"
}
},
"steps": [
{
"id": "where",
"state": "open",
"action": "find",
"facts": {},
"reason": "<string>",
"cards": [
{
"title": "<string>",
"kind": "read",
"mark": "<string>",
"ms": 123,
"note": "<string>"
}
]
}
],
"soon": {
"text": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
}
}
],
"by": "rules",
"createdAt": "<string>",
"confirmedAt": "<string>",
"done": true,
"canEdit": 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"
}