Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2)
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"levels": {},
"chosen": [
"<string>"
],
"effects": {},
"paging": {},
"shown": {},
"does": {},
"app": true,
"long": {},
"queries": [
{
"key": "<string>",
"title": "<string>",
"statement": "<string>",
"description": "",
"params": [],
"before": "<string>",
"maxRows": 500,
"maxAffected": 500
}
],
"removeQueries": [
"<string>"
],
"pages": [
{
"key": "<string>",
"title": "<string>",
"url": "<string>",
"description": "",
"params": [],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
}
],
"removePages": [
"<string>"
],
"operations": [
{
"key": "<string>",
"title": "<string>",
"path": "<string>",
"description": "",
"input": {},
"headers": [
"<string>"
],
"fixed": {
"query": {},
"body": {}
},
"fields": {}
}
],
"removeOperations": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}"
payload = {
"name": "<string>",
"levels": {},
"chosen": ["<string>"],
"effects": {},
"paging": {},
"shown": {},
"does": {},
"app": True,
"long": {},
"queries": [
{
"key": "<string>",
"title": "<string>",
"statement": "<string>",
"description": "",
"params": [],
"before": "<string>",
"maxRows": 500,
"maxAffected": 500
}
],
"removeQueries": ["<string>"],
"pages": [
{
"key": "<string>",
"title": "<string>",
"url": "<string>",
"description": "",
"params": [],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
}
],
"removePages": ["<string>"],
"operations": [
{
"key": "<string>",
"title": "<string>",
"path": "<string>",
"description": "",
"input": {},
"headers": ["<string>"],
"fixed": {
"query": {},
"body": {}
},
"fields": {}
}
],
"removeOperations": ["<string>"]
}
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({
name: '<string>',
levels: {},
chosen: ['<string>'],
effects: {},
paging: {},
shown: {},
does: {},
app: true,
long: {},
queries: [
{
key: '<string>',
title: '<string>',
statement: '<string>',
description: '',
params: [],
before: '<string>',
maxRows: 500,
maxAffected: 500
}
],
removeQueries: ['<string>'],
pages: [
{
key: '<string>',
title: '<string>',
url: '<string>',
description: '',
params: [],
extract: [{name: '<string>', selector: '<string>'}],
fields: [{selector: '<string>', param: '<string>', value: '<string>'}],
submit: '<string>',
wait: '<string>'
}
],
removePages: ['<string>'],
operations: [
{
key: '<string>',
title: '<string>',
path: '<string>',
description: '',
input: {},
headers: ['<string>'],
fixed: {query: {}, body: JSON.stringify({})},
fields: {}
}
],
removeOperations: ['<string>']
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}', 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}/systems/external/{sys}",
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([
'name' => '<string>',
'levels' => [
],
'chosen' => [
'<string>'
],
'effects' => [
],
'paging' => [
],
'shown' => [
],
'does' => [
],
'app' => true,
'long' => [
],
'queries' => [
[
'key' => '<string>',
'title' => '<string>',
'statement' => '<string>',
'description' => '',
'params' => [
],
'before' => '<string>',
'maxRows' => 500,
'maxAffected' => 500
]
],
'removeQueries' => [
'<string>'
],
'pages' => [
[
'key' => '<string>',
'title' => '<string>',
'url' => '<string>',
'description' => '',
'params' => [
],
'extract' => [
[
'name' => '<string>',
'selector' => '<string>'
]
],
'fields' => [
[
'selector' => '<string>',
'param' => '<string>',
'value' => '<string>'
]
],
'submit' => '<string>',
'wait' => '<string>'
]
],
'removePages' => [
'<string>'
],
'operations' => [
[
'key' => '<string>',
'title' => '<string>',
'path' => '<string>',
'description' => '',
'input' => [
],
'headers' => [
'<string>'
],
'fixed' => [
'query' => [
],
'body' => [
]
],
'fields' => [
]
]
],
'removeOperations' => [
'<string>'
]
]),
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}/systems/external/{sys}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\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}/systems/external/{sys}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}")
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 \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"system": {
"id": "<string>",
"name": "<string>",
"kind": "mcp",
"address": "<string>",
"status": "draft",
"statusText": "<string>",
"dataClass": "öffentlich",
"auth": {
"kind": "none",
"header": "<string>",
"query": "<string>",
"username": "<string>",
"tokenUrl": "<string>",
"scopes": [
"<string>"
],
"set": true,
"region": "<string>",
"env": "<string>",
"person": {
"people": 123,
"me": true,
"account": "<string>"
},
"steps": [
{
"do": "header",
"name": "<string>",
"value": "<string>",
"secret": "<string>",
"prefix": "<string>"
}
],
"slots": [
{
"slot": "<string>",
"set": true
}
]
},
"operations": [
{
"id": "<string>",
"key": "<string>",
"title": "<string>",
"description": "<string>",
"effect": "read",
"level": "off",
"chosen": true,
"source": "<string>",
"input": {},
"scope": "<string>",
"unscoped": true,
"code": true,
"unsaid": true,
"neverRead": true,
"readName": true,
"long": "admin",
"paging": {
"next": "<string>",
"param": "<string>"
},
"shown": {
"fields": [
{
"path": "<string>",
"label": "<string>",
"role": "name",
"noSum": true,
"minor": 2
}
],
"first": 3,
"by": "system",
"more": [
{
"path": "<string>",
"label": "<string>"
}
]
},
"does": "mail.read",
"sql": {
"statement": "<string>",
"params": [
{
"name": "<string>",
"type": "text"
}
],
"before": "<string>",
"maxRows": 123,
"maxAffected": 123
},
"optIn": "bodies",
"page": {
"kind": "read",
"url": "<string>",
"params": [
{
"name": "<string>",
"type": "text"
}
],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
},
"command": {
"program": "<string>",
"args": [
"<string>"
],
"line": "<string>"
},
"machine": {
"target": "<string>",
"type": "<string>",
"unit": "<string>",
"range": "<string>",
"zpl": "<string>"
}
}
],
"test": {
"at": "<string>",
"ok": true,
"ms": 123,
"operation": "<string>",
"text": "<string>",
"sample": "<string>",
"problem": {
"code": "auth.scope_missing",
"fact": "<string>",
"next": {
"tool": "system_connect",
"input": {},
"action": "<string>"
},
"text": "<string>",
"retryAfter": 4503599627370495
},
"signIn": "unconfirmed"
},
"apps": [
"<string>"
],
"calls": {
"ok": 123,
"failed": 123,
"lastAt": "<string>"
},
"createdAt": "<string>",
"createdBy": "<string>",
"updatedAt": "<string>",
"kindOpen": true,
"liveApps": [
"<string>"
],
"rollout": {
"read": {
"kind": "none"
},
"write": {
"kind": "none"
},
"operations": [
"<string>"
],
"decidedBy": "<string>",
"decidedAt": "<string>"
},
"reach": {
"state": "nobody",
"all": true,
"groups": 4503599627370495,
"people": 4503599627370495,
"me": true,
"apps": 4503599627370495,
"writes": true,
"customised": true,
"waiting": true
},
"liveCopy": {
"operations": 123,
"at": "<string>",
"tested": true
},
"via": {
"connector": "<string>",
"name": "<string>",
"online": true,
"key": true,
"cert": true,
"certs": true,
"guide": {
"platform": "linux",
"host": "<string>",
"scheme": "bearer",
"oauth": {
"origin": "<string>"
},
"layout": "standard"
},
"oauth": {
"origin": "<string>",
"scopes": [
"<string>"
],
"other": true,
"state": "update",
"missing": true,
"next": {
"origin": "<string>",
"scopes": [
"<string>"
]
}
},
"signIn": {
"use": "none",
"of": {
"id": "<string>",
"name": "<string>"
},
"host": "<string>",
"waiting": true,
"gone": true,
"usedBy": [
{
"id": "<string>",
"name": "<string>"
}
],
"offer": {
"host": "<string>",
"of": {
"id": "<string>",
"name": "<string>"
},
"old": {
"line": "<string>",
"name": "<string>"
}
},
"kind": "key",
"clicked": true
},
"older": true
},
"app": true,
"events": [
{
"key": "<string>",
"title": "<string>",
"description": "<string>",
"on": true,
"address": "<string>",
"reachable": true,
"secret": true,
"verify": "hmac",
"retentionDays": 123,
"received": {
"count": 123,
"lastAt": "<string>"
},
"refused": 123,
"starts": [
"<string>"
]
}
],
"resource": {
"key": "<string>",
"name": "<string>",
"location": "<string>",
"deviceWritable": true,
"write": true,
"groups": "all",
"unsafe": true,
"bodies": true,
"readOnly": true,
"dialect": "postgres",
"hostKey": {
"sha256": "<string>",
"pinned": "settings"
},
"ready": true,
"missing": "<string>",
"origins": [
"<string>"
],
"login": true,
"engine": "<string>",
"security": "SignAndEncrypt",
"policy": "<string>",
"serverCert": {
"sha256": "<string>",
"pinned": "settings"
},
"clientCert": "<string>",
"connected": true,
"refused": [
{
"key": "<string>",
"problem": "<string>"
}
]
},
"checklist": {
"steps": [
{
"id": "reach",
"state": "done",
"failed": true,
"device": "<string>",
"online": true,
"kind": "<string>",
"operations": 4503599627370495,
"auth": "<string>",
"place": "none",
"env": "<string>",
"account": "<string>",
"chosen": 4503599627370495,
"writes": 4503599627370495,
"at": "<string>",
"sample": true,
"text": "<string>",
"who": "none",
"groups": 4503599627370495,
"people": 4503599627370495
}
],
"done": 4503599627370495,
"total": 4503599627370495,
"next": {
"step": "reach",
"action": "draft"
}
}
},
"canEdit": true,
"notice": "<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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2)
Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2).
Im Chat mit «Mono Admin»: .
PATCH
/
mandanten
/
{id}
/
systems
/
external
/
{sys}
Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2)
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"levels": {},
"chosen": [
"<string>"
],
"effects": {},
"paging": {},
"shown": {},
"does": {},
"app": true,
"long": {},
"queries": [
{
"key": "<string>",
"title": "<string>",
"statement": "<string>",
"description": "",
"params": [],
"before": "<string>",
"maxRows": 500,
"maxAffected": 500
}
],
"removeQueries": [
"<string>"
],
"pages": [
{
"key": "<string>",
"title": "<string>",
"url": "<string>",
"description": "",
"params": [],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
}
],
"removePages": [
"<string>"
],
"operations": [
{
"key": "<string>",
"title": "<string>",
"path": "<string>",
"description": "",
"input": {},
"headers": [
"<string>"
],
"fixed": {
"query": {},
"body": {}
},
"fields": {}
}
],
"removeOperations": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}"
payload = {
"name": "<string>",
"levels": {},
"chosen": ["<string>"],
"effects": {},
"paging": {},
"shown": {},
"does": {},
"app": True,
"long": {},
"queries": [
{
"key": "<string>",
"title": "<string>",
"statement": "<string>",
"description": "",
"params": [],
"before": "<string>",
"maxRows": 500,
"maxAffected": 500
}
],
"removeQueries": ["<string>"],
"pages": [
{
"key": "<string>",
"title": "<string>",
"url": "<string>",
"description": "",
"params": [],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
}
],
"removePages": ["<string>"],
"operations": [
{
"key": "<string>",
"title": "<string>",
"path": "<string>",
"description": "",
"input": {},
"headers": ["<string>"],
"fixed": {
"query": {},
"body": {}
},
"fields": {}
}
],
"removeOperations": ["<string>"]
}
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({
name: '<string>',
levels: {},
chosen: ['<string>'],
effects: {},
paging: {},
shown: {},
does: {},
app: true,
long: {},
queries: [
{
key: '<string>',
title: '<string>',
statement: '<string>',
description: '',
params: [],
before: '<string>',
maxRows: 500,
maxAffected: 500
}
],
removeQueries: ['<string>'],
pages: [
{
key: '<string>',
title: '<string>',
url: '<string>',
description: '',
params: [],
extract: [{name: '<string>', selector: '<string>'}],
fields: [{selector: '<string>', param: '<string>', value: '<string>'}],
submit: '<string>',
wait: '<string>'
}
],
removePages: ['<string>'],
operations: [
{
key: '<string>',
title: '<string>',
path: '<string>',
description: '',
input: {},
headers: ['<string>'],
fixed: {query: {}, body: JSON.stringify({})},
fields: {}
}
],
removeOperations: ['<string>']
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}', 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}/systems/external/{sys}",
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([
'name' => '<string>',
'levels' => [
],
'chosen' => [
'<string>'
],
'effects' => [
],
'paging' => [
],
'shown' => [
],
'does' => [
],
'app' => true,
'long' => [
],
'queries' => [
[
'key' => '<string>',
'title' => '<string>',
'statement' => '<string>',
'description' => '',
'params' => [
],
'before' => '<string>',
'maxRows' => 500,
'maxAffected' => 500
]
],
'removeQueries' => [
'<string>'
],
'pages' => [
[
'key' => '<string>',
'title' => '<string>',
'url' => '<string>',
'description' => '',
'params' => [
],
'extract' => [
[
'name' => '<string>',
'selector' => '<string>'
]
],
'fields' => [
[
'selector' => '<string>',
'param' => '<string>',
'value' => '<string>'
]
],
'submit' => '<string>',
'wait' => '<string>'
]
],
'removePages' => [
'<string>'
],
'operations' => [
[
'key' => '<string>',
'title' => '<string>',
'path' => '<string>',
'description' => '',
'input' => [
],
'headers' => [
'<string>'
],
'fixed' => [
'query' => [
],
'body' => [
]
],
'fields' => [
]
]
],
'removeOperations' => [
'<string>'
]
]),
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}/systems/external/{sys}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\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}/systems/external/{sys}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/systems/external/{sys}")
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 \"name\": \"<string>\",\n \"levels\": {},\n \"chosen\": [\n \"<string>\"\n ],\n \"effects\": {},\n \"paging\": {},\n \"shown\": {},\n \"does\": {},\n \"app\": true,\n \"long\": {},\n \"queries\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"statement\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"before\": \"<string>\",\n \"maxRows\": 500,\n \"maxAffected\": 500\n }\n ],\n \"removeQueries\": [\n \"<string>\"\n ],\n \"pages\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"params\": [],\n \"extract\": [\n {\n \"name\": \"<string>\",\n \"selector\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"selector\": \"<string>\",\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"submit\": \"<string>\",\n \"wait\": \"<string>\"\n }\n ],\n \"removePages\": [\n \"<string>\"\n ],\n \"operations\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"path\": \"<string>\",\n \"description\": \"\",\n \"input\": {},\n \"headers\": [\n \"<string>\"\n ],\n \"fixed\": {\n \"query\": {},\n \"body\": {}\n },\n \"fields\": {}\n }\n ],\n \"removeOperations\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"system": {
"id": "<string>",
"name": "<string>",
"kind": "mcp",
"address": "<string>",
"status": "draft",
"statusText": "<string>",
"dataClass": "öffentlich",
"auth": {
"kind": "none",
"header": "<string>",
"query": "<string>",
"username": "<string>",
"tokenUrl": "<string>",
"scopes": [
"<string>"
],
"set": true,
"region": "<string>",
"env": "<string>",
"person": {
"people": 123,
"me": true,
"account": "<string>"
},
"steps": [
{
"do": "header",
"name": "<string>",
"value": "<string>",
"secret": "<string>",
"prefix": "<string>"
}
],
"slots": [
{
"slot": "<string>",
"set": true
}
]
},
"operations": [
{
"id": "<string>",
"key": "<string>",
"title": "<string>",
"description": "<string>",
"effect": "read",
"level": "off",
"chosen": true,
"source": "<string>",
"input": {},
"scope": "<string>",
"unscoped": true,
"code": true,
"unsaid": true,
"neverRead": true,
"readName": true,
"long": "admin",
"paging": {
"next": "<string>",
"param": "<string>"
},
"shown": {
"fields": [
{
"path": "<string>",
"label": "<string>",
"role": "name",
"noSum": true,
"minor": 2
}
],
"first": 3,
"by": "system",
"more": [
{
"path": "<string>",
"label": "<string>"
}
]
},
"does": "mail.read",
"sql": {
"statement": "<string>",
"params": [
{
"name": "<string>",
"type": "text"
}
],
"before": "<string>",
"maxRows": 123,
"maxAffected": 123
},
"optIn": "bodies",
"page": {
"kind": "read",
"url": "<string>",
"params": [
{
"name": "<string>",
"type": "text"
}
],
"extract": [
{
"name": "<string>",
"selector": "<string>"
}
],
"fields": [
{
"selector": "<string>",
"param": "<string>",
"value": "<string>"
}
],
"submit": "<string>",
"wait": "<string>"
},
"command": {
"program": "<string>",
"args": [
"<string>"
],
"line": "<string>"
},
"machine": {
"target": "<string>",
"type": "<string>",
"unit": "<string>",
"range": "<string>",
"zpl": "<string>"
}
}
],
"test": {
"at": "<string>",
"ok": true,
"ms": 123,
"operation": "<string>",
"text": "<string>",
"sample": "<string>",
"problem": {
"code": "auth.scope_missing",
"fact": "<string>",
"next": {
"tool": "system_connect",
"input": {},
"action": "<string>"
},
"text": "<string>",
"retryAfter": 4503599627370495
},
"signIn": "unconfirmed"
},
"apps": [
"<string>"
],
"calls": {
"ok": 123,
"failed": 123,
"lastAt": "<string>"
},
"createdAt": "<string>",
"createdBy": "<string>",
"updatedAt": "<string>",
"kindOpen": true,
"liveApps": [
"<string>"
],
"rollout": {
"read": {
"kind": "none"
},
"write": {
"kind": "none"
},
"operations": [
"<string>"
],
"decidedBy": "<string>",
"decidedAt": "<string>"
},
"reach": {
"state": "nobody",
"all": true,
"groups": 4503599627370495,
"people": 4503599627370495,
"me": true,
"apps": 4503599627370495,
"writes": true,
"customised": true,
"waiting": true
},
"liveCopy": {
"operations": 123,
"at": "<string>",
"tested": true
},
"via": {
"connector": "<string>",
"name": "<string>",
"online": true,
"key": true,
"cert": true,
"certs": true,
"guide": {
"platform": "linux",
"host": "<string>",
"scheme": "bearer",
"oauth": {
"origin": "<string>"
},
"layout": "standard"
},
"oauth": {
"origin": "<string>",
"scopes": [
"<string>"
],
"other": true,
"state": "update",
"missing": true,
"next": {
"origin": "<string>",
"scopes": [
"<string>"
]
}
},
"signIn": {
"use": "none",
"of": {
"id": "<string>",
"name": "<string>"
},
"host": "<string>",
"waiting": true,
"gone": true,
"usedBy": [
{
"id": "<string>",
"name": "<string>"
}
],
"offer": {
"host": "<string>",
"of": {
"id": "<string>",
"name": "<string>"
},
"old": {
"line": "<string>",
"name": "<string>"
}
},
"kind": "key",
"clicked": true
},
"older": true
},
"app": true,
"events": [
{
"key": "<string>",
"title": "<string>",
"description": "<string>",
"on": true,
"address": "<string>",
"reachable": true,
"secret": true,
"verify": "hmac",
"retentionDays": 123,
"received": {
"count": 123,
"lastAt": "<string>"
},
"refused": 123,
"starts": [
"<string>"
]
}
],
"resource": {
"key": "<string>",
"name": "<string>",
"location": "<string>",
"deviceWritable": true,
"write": true,
"groups": "all",
"unsafe": true,
"bodies": true,
"readOnly": true,
"dialect": "postgres",
"hostKey": {
"sha256": "<string>",
"pinned": "settings"
},
"ready": true,
"missing": "<string>",
"origins": [
"<string>"
],
"login": true,
"engine": "<string>",
"security": "SignAndEncrypt",
"policy": "<string>",
"serverCert": {
"sha256": "<string>",
"pinned": "settings"
},
"clientCert": "<string>",
"connected": true,
"refused": [
{
"key": "<string>",
"problem": "<string>"
}
]
},
"checklist": {
"steps": [
{
"id": "reach",
"state": "done",
"failed": true,
"device": "<string>",
"online": true,
"kind": "<string>",
"operations": 4503599627370495,
"auth": "<string>",
"place": "none",
"env": "<string>",
"account": "<string>",
"chosen": 4503599627370495,
"writes": 4503599627370495,
"at": "<string>",
"sample": true,
"text": "<string>",
"who": "none",
"groups": 4503599627370495,
"people": 4503599627370495
}
],
"done": 4503599627370495,
"total": 4503599627370495,
"next": {
"step": "reach",
"action": "draft"
}
}
},
"canEdit": true,
"notice": "<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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Pfadparameter
Body
application/json