Prozess anlegen aus einem Entwurf – Diagramm, Beschreibung oder Sprachnotiz (ADR-0112 § 3)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/prozesse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entwurf": {
"name": "<string>",
"schritte": [
{
"id": "<string>",
"name": "<string>",
"rolle": "<string>",
"beschreibung": "<string>",
"system": "<string>",
"next": [],
"quelle": {
"anlage": "<string>",
"element": "<string>",
"seite": 5000,
"box": [
123,
123,
123,
123
]
},
"teilprozess": "<string>"
}
],
"quelle": {
"anlage": "<string>",
"am": "<string>"
},
"zweck": "<string>",
"ausloeser": {
"kind": "manuell"
},
"hinweise": []
},
"anfrage": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/prozesse"
payload = {
"entwurf": {
"name": "<string>",
"schritte": [
{
"id": "<string>",
"name": "<string>",
"rolle": "<string>",
"beschreibung": "<string>",
"system": "<string>",
"next": [],
"quelle": {
"anlage": "<string>",
"element": "<string>",
"seite": 5000,
"box": [123, 123, 123, 123]
},
"teilprozess": "<string>"
}
],
"quelle": {
"anlage": "<string>",
"am": "<string>"
},
"zweck": "<string>",
"ausloeser": { "kind": "manuell" },
"hinweise": []
},
"anfrage": "<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({
entwurf: {
name: '<string>',
schritte: [
{
id: '<string>',
name: '<string>',
rolle: '<string>',
beschreibung: '<string>',
system: '<string>',
next: [],
quelle: {
anlage: '<string>',
element: '<string>',
seite: 5000,
box: [123, 123, 123, 123]
},
teilprozess: '<string>'
}
],
quelle: {anlage: '<string>', am: '<string>'},
zweck: '<string>',
ausloeser: {kind: 'manuell'},
hinweise: []
},
anfrage: '<string>'
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/prozesse', 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}/prozesse",
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([
'entwurf' => [
'name' => '<string>',
'schritte' => [
[
'id' => '<string>',
'name' => '<string>',
'rolle' => '<string>',
'beschreibung' => '<string>',
'system' => '<string>',
'next' => [
],
'quelle' => [
'anlage' => '<string>',
'element' => '<string>',
'seite' => 5000,
'box' => [
123,
123,
123,
123
]
],
'teilprozess' => '<string>'
]
],
'quelle' => [
'anlage' => '<string>',
'am' => '<string>'
],
'zweck' => '<string>',
'ausloeser' => [
'kind' => 'manuell'
],
'hinweise' => [
]
],
'anfrage' => '<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}/prozesse"
payload := strings.NewReader("{\n \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<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}/prozesse")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/prozesse")
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 \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}Prozess anlegen aus einem Entwurf – Diagramm, Beschreibung oder Sprachnotiz (ADR-0112 § 3)
Prozess anlegen aus einem Entwurf – Diagramm, Beschreibung oder Sprachnotiz (ADR-0112 § 3).
Im Chat mit «Mono Admin»: secret_link, der Assistent «prozess».
POST
/
mandanten
/
{id}
/
prozesse
Prozess anlegen aus einem Entwurf – Diagramm, Beschreibung oder Sprachnotiz (ADR-0112 § 3)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/prozesse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entwurf": {
"name": "<string>",
"schritte": [
{
"id": "<string>",
"name": "<string>",
"rolle": "<string>",
"beschreibung": "<string>",
"system": "<string>",
"next": [],
"quelle": {
"anlage": "<string>",
"element": "<string>",
"seite": 5000,
"box": [
123,
123,
123,
123
]
},
"teilprozess": "<string>"
}
],
"quelle": {
"anlage": "<string>",
"am": "<string>"
},
"zweck": "<string>",
"ausloeser": {
"kind": "manuell"
},
"hinweise": []
},
"anfrage": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/prozesse"
payload = {
"entwurf": {
"name": "<string>",
"schritte": [
{
"id": "<string>",
"name": "<string>",
"rolle": "<string>",
"beschreibung": "<string>",
"system": "<string>",
"next": [],
"quelle": {
"anlage": "<string>",
"element": "<string>",
"seite": 5000,
"box": [123, 123, 123, 123]
},
"teilprozess": "<string>"
}
],
"quelle": {
"anlage": "<string>",
"am": "<string>"
},
"zweck": "<string>",
"ausloeser": { "kind": "manuell" },
"hinweise": []
},
"anfrage": "<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({
entwurf: {
name: '<string>',
schritte: [
{
id: '<string>',
name: '<string>',
rolle: '<string>',
beschreibung: '<string>',
system: '<string>',
next: [],
quelle: {
anlage: '<string>',
element: '<string>',
seite: 5000,
box: [123, 123, 123, 123]
},
teilprozess: '<string>'
}
],
quelle: {anlage: '<string>', am: '<string>'},
zweck: '<string>',
ausloeser: {kind: 'manuell'},
hinweise: []
},
anfrage: '<string>'
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/prozesse', 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}/prozesse",
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([
'entwurf' => [
'name' => '<string>',
'schritte' => [
[
'id' => '<string>',
'name' => '<string>',
'rolle' => '<string>',
'beschreibung' => '<string>',
'system' => '<string>',
'next' => [
],
'quelle' => [
'anlage' => '<string>',
'element' => '<string>',
'seite' => 5000,
'box' => [
123,
123,
123,
123
]
],
'teilprozess' => '<string>'
]
],
'quelle' => [
'anlage' => '<string>',
'am' => '<string>'
],
'zweck' => '<string>',
'ausloeser' => [
'kind' => 'manuell'
],
'hinweise' => [
]
],
'anfrage' => '<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}/prozesse"
payload := strings.NewReader("{\n \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<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}/prozesse")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/prozesse")
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 \"entwurf\": {\n \"name\": \"<string>\",\n \"schritte\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"rolle\": \"<string>\",\n \"beschreibung\": \"<string>\",\n \"system\": \"<string>\",\n \"next\": [],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"element\": \"<string>\",\n \"seite\": 5000,\n \"box\": [\n 123,\n 123,\n 123,\n 123\n ]\n },\n \"teilprozess\": \"<string>\"\n }\n ],\n \"quelle\": {\n \"anlage\": \"<string>\",\n \"am\": \"<string>\"\n },\n \"zweck\": \"<string>\",\n \"ausloeser\": {\n \"kind\": \"manuell\"\n },\n \"hinweise\": []\n },\n \"anfrage\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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
Abfrageparameter
Body
application/json
Antwort
Erfolgreich. Die Form der Antwort beschreibt diese Referenz noch nicht.