Eine Änderung in den CI-Entwurf: Farbe, Logo (die Datei über den Einmal-Link), Regel, Prüfung, Version, Booklet
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "color",
"hex": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes"
payload = {
"kind": "color",
"hex": "<string>"
}
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({kind: 'color', hex: '<string>'})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes', 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}/servers/{server}/ci/changes",
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([
'kind' => 'color',
'hex' => '<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}/servers/{server}/ci/changes"
payload := strings.NewReader("{\n \"kind\": \"color\",\n \"hex\": \"<string>\"\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}/servers/{server}/ci/changes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"color\",\n \"hex\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes")
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 \"kind\": \"color\",\n \"hex\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"draft": {
"n": 123,
"by": "<string>",
"at": "<string>",
"changes": [
"<string>"
],
"values": {
"booklet": {
"file": "<string>",
"pages": 0,
"readAt": "<string>"
},
"logos": [
{
"id": "haupt",
"file": "<string>",
"format": "SVG",
"sizeKb": 1,
"src": "<string>",
"standard": "<string>",
"standardSrc": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"colors": [
{
"id": "primaer",
"hex": "<string>",
"standard": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"fonts": [
{
"id": "ueberschriften",
"family": "<string>",
"stack": "<string>",
"license": "ok",
"licenseNote": "<string>",
"standard": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"files": [
{
"style": "regular",
"file": "<string>",
"family": "<string>",
"key": "<string>",
"sizeKb": 1,
"glyphs": 4503599627370495,
"fsType": "installable"
}
],
"embed": {
"allowed": true,
"note": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
}
],
"fallback": "<string>",
"rules": [
{
"id": "<string>",
"text": "<string>",
"page": 0,
"kind": "logo",
"state": "ok",
"changed": {
"by": "<string>",
"at": "<string>"
},
"test": {
"never": [
"<string>"
],
"prefer": "<string>",
"ignoreCase": true
}
}
],
"checks": [
{
"id": "kontrast",
"mode": "korrigieren",
"standard": "korrigieren",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"business": {
"absender": "<string>",
"uid": "<string>",
"iban": "<string>",
"qrIban": "<string>",
"fusszeile": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
},
"palette": [
{
"role": "sekundaer",
"hex": "<string>",
"name": "<string>"
}
],
"letterhead": {
"paper": {
"widthMm": 123,
"heightMm": 123,
"name": "A4"
},
"margins": {
"top": 123,
"right": 123,
"bottom": 123,
"left": 123
},
"headerMm": 123,
"footerMm": 123,
"logo": {
"align": "links",
"widthMm": 123
},
"sender": {
"sizePt": 123,
"color": "<string>"
},
"footer": [
"uid"
],
"source": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"template": {
"file": "<string>",
"key": "<string>",
"sizeKb": 1,
"recognized": {
"format": "<string>",
"kind": "<string>",
"fields": [
"<unknown>"
],
"computes": [
"<string>"
],
"fit": "<string>",
"reason": "<string>",
"text": "<string>",
"hash": "<string>"
}
}
},
"master": {
"ratio": "16:9",
"background": "<string>",
"title": {
"font": "<string>",
"sizePt": 123,
"color": "<string>"
},
"body": {
"font": "<string>",
"sizePt": 123,
"color": "<string>"
},
"logo": {
"x": 123,
"y": 123,
"w": 123
},
"layouts": [
"<string>"
],
"source": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"template": {
"file": "<string>",
"key": "<string>",
"sizeKb": 1,
"recognized": {
"format": "<string>",
"kind": "<string>",
"fields": [
"<unknown>"
],
"computes": [
"<string>"
],
"fit": "<string>",
"reason": "<string>",
"text": "<string>",
"hash": "<string>"
}
}
},
"unterlagen": {
"modell": true,
"changed": {
"by": "<string>",
"at": "<string>"
}
}
},
"said": [
{
"code": "<string>",
"vars": {}
}
]
}
}{
"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"
}Eine Änderung in den CI-Entwurf: Farbe, Logo (die Datei über den Einmal-Link), Regel, Prüfung, Version, Booklet
Eine Änderung in den CI-Entwurf: Farbe, Logo (die Datei über den Einmal-Link), Regel, Prüfung, Version, Booklet.
Im Chat mit «Mono Admin»: secret_link, der Assistent «ci».
POST
/
mandanten
/
{id}
/
servers
/
{server}
/
ci
/
changes
Eine Änderung in den CI-Entwurf: Farbe, Logo (die Datei über den Einmal-Link), Regel, Prüfung, Version, Booklet
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "color",
"hex": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes"
payload = {
"kind": "color",
"hex": "<string>"
}
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({kind: 'color', hex: '<string>'})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes', 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}/servers/{server}/ci/changes",
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([
'kind' => 'color',
'hex' => '<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}/servers/{server}/ci/changes"
payload := strings.NewReader("{\n \"kind\": \"color\",\n \"hex\": \"<string>\"\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}/servers/{server}/ci/changes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"color\",\n \"hex\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/servers/{server}/ci/changes")
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 \"kind\": \"color\",\n \"hex\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"draft": {
"n": 123,
"by": "<string>",
"at": "<string>",
"changes": [
"<string>"
],
"values": {
"booklet": {
"file": "<string>",
"pages": 0,
"readAt": "<string>"
},
"logos": [
{
"id": "haupt",
"file": "<string>",
"format": "SVG",
"sizeKb": 1,
"src": "<string>",
"standard": "<string>",
"standardSrc": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"colors": [
{
"id": "primaer",
"hex": "<string>",
"standard": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"fonts": [
{
"id": "ueberschriften",
"family": "<string>",
"stack": "<string>",
"license": "ok",
"licenseNote": "<string>",
"standard": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"files": [
{
"style": "regular",
"file": "<string>",
"family": "<string>",
"key": "<string>",
"sizeKb": 1,
"glyphs": 4503599627370495,
"fsType": "installable"
}
],
"embed": {
"allowed": true,
"note": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
}
],
"fallback": "<string>",
"rules": [
{
"id": "<string>",
"text": "<string>",
"page": 0,
"kind": "logo",
"state": "ok",
"changed": {
"by": "<string>",
"at": "<string>"
},
"test": {
"never": [
"<string>"
],
"prefer": "<string>",
"ignoreCase": true
}
}
],
"checks": [
{
"id": "kontrast",
"mode": "korrigieren",
"standard": "korrigieren",
"changed": {
"by": "<string>",
"at": "<string>"
}
}
],
"business": {
"absender": "<string>",
"uid": "<string>",
"iban": "<string>",
"qrIban": "<string>",
"fusszeile": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
}
},
"palette": [
{
"role": "sekundaer",
"hex": "<string>",
"name": "<string>"
}
],
"letterhead": {
"paper": {
"widthMm": 123,
"heightMm": 123,
"name": "A4"
},
"margins": {
"top": 123,
"right": 123,
"bottom": 123,
"left": 123
},
"headerMm": 123,
"footerMm": 123,
"logo": {
"align": "links",
"widthMm": 123
},
"sender": {
"sizePt": 123,
"color": "<string>"
},
"footer": [
"uid"
],
"source": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"template": {
"file": "<string>",
"key": "<string>",
"sizeKb": 1,
"recognized": {
"format": "<string>",
"kind": "<string>",
"fields": [
"<unknown>"
],
"computes": [
"<string>"
],
"fit": "<string>",
"reason": "<string>",
"text": "<string>",
"hash": "<string>"
}
}
},
"master": {
"ratio": "16:9",
"background": "<string>",
"title": {
"font": "<string>",
"sizePt": 123,
"color": "<string>"
},
"body": {
"font": "<string>",
"sizePt": 123,
"color": "<string>"
},
"logo": {
"x": 123,
"y": 123,
"w": 123
},
"layouts": [
"<string>"
],
"source": "<string>",
"changed": {
"by": "<string>",
"at": "<string>"
},
"template": {
"file": "<string>",
"key": "<string>",
"sizeKb": 1,
"recognized": {
"format": "<string>",
"kind": "<string>",
"fields": [
"<unknown>"
],
"computes": [
"<string>"
],
"fit": "<string>",
"reason": "<string>",
"text": "<string>",
"hash": "<string>"
}
}
},
"unterlagen": {
"modell": true,
"changed": {
"by": "<string>",
"at": "<string>"
}
}
},
"said": [
{
"code": "<string>",
"vars": {}
}
]
}
}{
"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