«Neue App» aus einem freien Satz: Mono schlägt die ganze App vor – im Chat liest das Modell des KI-Clients denselben Satz und füllt den Assistenten (ADR-0059 Amendment E)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/apps/propose \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"change": "<string>",
"answers": {},
"refresh": true,
"missing": [
"<string>"
],
"lang": "<string>",
"starter": "<string>",
"systems": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/apps/propose"
payload = {
"prompt": "<string>",
"change": "<string>",
"answers": {},
"refresh": True,
"missing": ["<string>"],
"lang": "<string>",
"starter": "<string>",
"systems": ["<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({
prompt: '<string>',
change: '<string>',
answers: {},
refresh: true,
missing: ['<string>'],
lang: '<string>',
starter: '<string>',
systems: ['<string>']
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/apps/propose', 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}/apps/propose",
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([
'prompt' => '<string>',
'change' => '<string>',
'answers' => [
],
'refresh' => true,
'missing' => [
'<string>'
],
'lang' => '<string>',
'starter' => '<string>',
'systems' => [
'<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}/apps/propose"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\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}/apps/propose")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/apps/propose")
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 \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"via": "proposal",
"answers": {},
"form": {
"title": "<string>",
"steps": [
{
"key": "<string>",
"label": "<string>",
"question": "<string>",
"required": true,
"done": true,
"value": "<string>",
"standard": "<string>",
"options": [
"<string>"
],
"values": [
"<string>"
],
"groups": [
"<string>"
]
}
],
"problems": [
"<string>"
],
"notes": [
{
"label": "<string>",
"value": "<string>"
}
],
"ready": true,
"proposes": true
},
"systems": [
{
"name": "<string>",
"label": "<string>",
"state": "ready",
"dataClass": "öffentlich",
"operations": [
{
"title": "<string>",
"effect": "read",
"level": "off"
}
],
"connectAs": "<string>"
}
],
"model": "<string>",
"modelId": "<string>",
"shown": {
"writes": [
"<string>"
],
"schedule": "<string>"
},
"chat": {
"server": "<string>",
"visible": 4503599627370495,
"budget": 4503599627370495
}
}{
"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"
}«Neue App» aus einem freien Satz: Mono schlägt die ganze App vor – im Chat liest das Modell des KI-Clients denselben Satz und füllt den Assistenten (ADR-0059 Amendment E)
«Neue App» aus einem freien Satz: Mono schlägt die ganze App vor – im Chat liest das Modell des KI-Clients denselben Satz und füllt den Assistenten (ADR-0059 Amendment E).
Im Chat mit «Mono Admin»: der Assistent «app».
POST
/
mandanten
/
{id}
/
apps
/
propose
«Neue App» aus einem freien Satz: Mono schlägt die ganze App vor – im Chat liest das Modell des KI-Clients denselben Satz und füllt den Assistenten (ADR-0059 Amendment E)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/apps/propose \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"change": "<string>",
"answers": {},
"refresh": true,
"missing": [
"<string>"
],
"lang": "<string>",
"starter": "<string>",
"systems": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/apps/propose"
payload = {
"prompt": "<string>",
"change": "<string>",
"answers": {},
"refresh": True,
"missing": ["<string>"],
"lang": "<string>",
"starter": "<string>",
"systems": ["<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({
prompt: '<string>',
change: '<string>',
answers: {},
refresh: true,
missing: ['<string>'],
lang: '<string>',
starter: '<string>',
systems: ['<string>']
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/apps/propose', 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}/apps/propose",
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([
'prompt' => '<string>',
'change' => '<string>',
'answers' => [
],
'refresh' => true,
'missing' => [
'<string>'
],
'lang' => '<string>',
'starter' => '<string>',
'systems' => [
'<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}/apps/propose"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\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}/apps/propose")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/apps/propose")
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 \"prompt\": \"<string>\",\n \"change\": \"<string>\",\n \"answers\": {},\n \"refresh\": true,\n \"missing\": [\n \"<string>\"\n ],\n \"lang\": \"<string>\",\n \"starter\": \"<string>\",\n \"systems\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"via": "proposal",
"answers": {},
"form": {
"title": "<string>",
"steps": [
{
"key": "<string>",
"label": "<string>",
"question": "<string>",
"required": true,
"done": true,
"value": "<string>",
"standard": "<string>",
"options": [
"<string>"
],
"values": [
"<string>"
],
"groups": [
"<string>"
]
}
],
"problems": [
"<string>"
],
"notes": [
{
"label": "<string>",
"value": "<string>"
}
],
"ready": true,
"proposes": true
},
"systems": [
{
"name": "<string>",
"label": "<string>",
"state": "ready",
"dataClass": "öffentlich",
"operations": [
{
"title": "<string>",
"effect": "read",
"level": "off"
}
],
"connectAs": "<string>"
}
],
"model": "<string>",
"modelId": "<string>",
"shown": {
"writes": [
"<string>"
],
"schedule": "<string>"
},
"chat": {
"server": "<string>",
"visible": 4503599627370495,
"budget": 4503599627370495
}
}{
"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
Header
Body
application/json
Antwort
Erfolgreich.