Erinnerung oder Alarm per Klick
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/aufgaben \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "erinnerung",
"text": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": true
},
"project": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/aufgaben"
payload = {
"source": "erinnerung",
"text": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": True
},
"project": "<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({
source: 'erinnerung',
text: '<string>',
schedule: {
kind: 'once',
date: '<string>',
time: '<string>',
tz: '<string>',
skipHolidays: true
},
project: '<string>'
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/aufgaben', 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}/aufgaben",
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([
'source' => 'erinnerung',
'text' => '<string>',
'schedule' => [
'kind' => 'once',
'date' => '<string>',
'time' => '<string>',
'tz' => '<string>',
'skipHolidays' => true
],
'project' => '<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}/aufgaben"
payload := strings.NewReader("{\n \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<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}/aufgaben")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/aufgaben")
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 \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"aufgabe": {
"id": "<string>",
"source": "erinnerung",
"title": "<string>",
"state": "scheduled",
"by": {
"id": "<string>",
"name": "<string>"
},
"mine": true,
"dataClass": "öffentlich",
"createdAt": "<string>",
"runs": [
{
"id": "<string>",
"state": "due",
"dueAt": "<string>",
"phases": [
{
"key": "<string>",
"at": "<string>",
"n": 4503599627370495,
"ms": 4503599627370495,
"tokens": 4503599627370495,
"values": {},
"member": {
"appId": "<string>",
"appName": "<string>"
}
}
],
"startedAt": "<string>",
"endedAt": "<string>",
"late": true,
"reason": {
"key": "<string>",
"values": {}
},
"value": "<unknown>",
"held": true,
"news": {
"items": [
"<string>"
],
"count": 4503599627370495
},
"report": {
"text": "<string>",
"confirmed": true
}
}
],
"counts": {
"runs": 4503599627370495,
"failed": 4503599627370495,
"tokens": 4503599627370495
},
"may": {
"cancel": true,
"again": true,
"pause": true,
"resume": true,
"snooze": true,
"done": true,
"runNow": true,
"skip": true,
"change": true,
"continue": true,
"take": true,
"giveBack": true
},
"project": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": true,
"canton": "AG",
"workdayShift": "next"
},
"trigger": {
"kind": "scan",
"resource": "<string>"
},
"nextAt": "<string>",
"reason": {
"key": "<string>",
"values": {}
},
"held": {
"key": "<string>",
"values": {}
},
"gruppe": {
"group": {
"id": "<string>",
"name": "<string>"
},
"mine": true,
"source": "<string>",
"ref": {
"kind": "<string>",
"id": "<string>"
},
"taken": {
"id": "<string>",
"name": "<string>",
"at": "<string>"
},
"left": {
"name": "<string>"
},
"outcome": "<string>"
},
"withheld": true,
"erinnerung": {
"text": "<string>"
},
"alarm": {
"name": "<string>",
"watch": {
"kind": "tool",
"tool": "<string>",
"inputs": {},
"pick": "<string>",
"label": "<string>"
},
"test": {
"op": "gt",
"value": 123
},
"holding": true,
"lastValue": "<unknown>"
},
"automation": {
"appId": "<string>",
"appName": "<string>",
"prompt": "<string>",
"runs": true,
"goal": "<string>",
"members": [
{
"appId": "<string>",
"appName": "<string>"
}
],
"own": true,
"uses": [
"<string>"
],
"reads": true,
"watch": {
"kind": "tool",
"tool": "<string>",
"inputs": {},
"pick": "<string>",
"label": "<string>"
},
"test": {
"op": "gt",
"value": 123
},
"budget": {
"steps": 123,
"tokens": 123,
"minutes": 123
}
},
"werkstatt": {
"kind": "<string>",
"family": "video",
"device": {
"id": "<string>",
"name": "<string>",
"site": "<string>"
},
"inputs": {},
"previews": [
{
"n": 4503599627370495,
"kind": "thumb",
"mime": "image/webp",
"width": 4503599627370496,
"height": 4503599627370496,
"bytes": 4503599627370495
}
],
"app": {
"system": "<string>",
"systemName": "<string>",
"operation": "<string>"
},
"position": 4503599627370496,
"progress": {
"done": 1,
"total": 1,
"unit": "frame"
},
"queueMs": 1,
"runMs": 1,
"output": {
"resource": "<string>",
"folder": "<string>",
"files": [
{
"name": "<string>",
"bytes": 4503599627370495
}
]
},
"previewsWithheld": true,
"log": "<string>"
},
"vertraulich": {
"action": "zusammenfassen",
"name": "<string>",
"sources": [
{
"kind": "ablage",
"label": "<string>"
}
],
"target": {
"kind": "mono"
},
"app": "<string>",
"language": "<string>",
"model": {
"provider": "<string>",
"locality": "lokal"
},
"position": 4503599627370496,
"code": "model_none",
"waited": true,
"long": true,
"netOpen": true,
"progress": {
"phase": "sources",
"of": 4503599627370496,
"elapsedMs": 4503599627370495,
"source": 4503599627370496
},
"start": {
"approval": "<string>",
"session": true,
"folder": "<string>",
"client": "<string>",
"netOpen": true
},
"revises": "<string>",
"neutral": true,
"result": {
"kept": true,
"until": "<string>",
"deletedAt": "<string>",
"filed": {
"share": "<string>",
"path": "<string>",
"at": "<string>"
},
"filing": "<string>",
"device": {
"name": "<string>",
"lastSeen": "<string>",
"offline": 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"
}Erinnerung oder Alarm per Klick
Erinnerung oder Alarm per Klick.
Im Chat: nicht vorgesehen. Persönlich: die Person sieht und ändert ihre Aufgaben im Chat auf dem Mandanten-Server (task_start, task_status – Admins mit «alle»); «Mono Admin» zählt sie in betrieb_status und stellt die Werkstatt ein (ADR-0071 § 7).
POST
/
mandanten
/
{id}
/
aufgaben
Erinnerung oder Alarm per Klick
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/aufgaben \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "erinnerung",
"text": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": true
},
"project": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/aufgaben"
payload = {
"source": "erinnerung",
"text": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": True
},
"project": "<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({
source: 'erinnerung',
text: '<string>',
schedule: {
kind: 'once',
date: '<string>',
time: '<string>',
tz: '<string>',
skipHolidays: true
},
project: '<string>'
})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/aufgaben', 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}/aufgaben",
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([
'source' => 'erinnerung',
'text' => '<string>',
'schedule' => [
'kind' => 'once',
'date' => '<string>',
'time' => '<string>',
'tz' => '<string>',
'skipHolidays' => true
],
'project' => '<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}/aufgaben"
payload := strings.NewReader("{\n \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<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}/aufgaben")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/aufgaben")
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 \"source\": \"erinnerung\",\n \"text\": \"<string>\",\n \"schedule\": {\n \"kind\": \"once\",\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"tz\": \"<string>\",\n \"skipHolidays\": true\n },\n \"project\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"aufgabe": {
"id": "<string>",
"source": "erinnerung",
"title": "<string>",
"state": "scheduled",
"by": {
"id": "<string>",
"name": "<string>"
},
"mine": true,
"dataClass": "öffentlich",
"createdAt": "<string>",
"runs": [
{
"id": "<string>",
"state": "due",
"dueAt": "<string>",
"phases": [
{
"key": "<string>",
"at": "<string>",
"n": 4503599627370495,
"ms": 4503599627370495,
"tokens": 4503599627370495,
"values": {},
"member": {
"appId": "<string>",
"appName": "<string>"
}
}
],
"startedAt": "<string>",
"endedAt": "<string>",
"late": true,
"reason": {
"key": "<string>",
"values": {}
},
"value": "<unknown>",
"held": true,
"news": {
"items": [
"<string>"
],
"count": 4503599627370495
},
"report": {
"text": "<string>",
"confirmed": true
}
}
],
"counts": {
"runs": 4503599627370495,
"failed": 4503599627370495,
"tokens": 4503599627370495
},
"may": {
"cancel": true,
"again": true,
"pause": true,
"resume": true,
"snooze": true,
"done": true,
"runNow": true,
"skip": true,
"change": true,
"continue": true,
"take": true,
"giveBack": true
},
"project": "<string>",
"schedule": {
"kind": "once",
"date": "<string>",
"time": "<string>",
"tz": "<string>",
"skipHolidays": true,
"canton": "AG",
"workdayShift": "next"
},
"trigger": {
"kind": "scan",
"resource": "<string>"
},
"nextAt": "<string>",
"reason": {
"key": "<string>",
"values": {}
},
"held": {
"key": "<string>",
"values": {}
},
"gruppe": {
"group": {
"id": "<string>",
"name": "<string>"
},
"mine": true,
"source": "<string>",
"ref": {
"kind": "<string>",
"id": "<string>"
},
"taken": {
"id": "<string>",
"name": "<string>",
"at": "<string>"
},
"left": {
"name": "<string>"
},
"outcome": "<string>"
},
"withheld": true,
"erinnerung": {
"text": "<string>"
},
"alarm": {
"name": "<string>",
"watch": {
"kind": "tool",
"tool": "<string>",
"inputs": {},
"pick": "<string>",
"label": "<string>"
},
"test": {
"op": "gt",
"value": 123
},
"holding": true,
"lastValue": "<unknown>"
},
"automation": {
"appId": "<string>",
"appName": "<string>",
"prompt": "<string>",
"runs": true,
"goal": "<string>",
"members": [
{
"appId": "<string>",
"appName": "<string>"
}
],
"own": true,
"uses": [
"<string>"
],
"reads": true,
"watch": {
"kind": "tool",
"tool": "<string>",
"inputs": {},
"pick": "<string>",
"label": "<string>"
},
"test": {
"op": "gt",
"value": 123
},
"budget": {
"steps": 123,
"tokens": 123,
"minutes": 123
}
},
"werkstatt": {
"kind": "<string>",
"family": "video",
"device": {
"id": "<string>",
"name": "<string>",
"site": "<string>"
},
"inputs": {},
"previews": [
{
"n": 4503599627370495,
"kind": "thumb",
"mime": "image/webp",
"width": 4503599627370496,
"height": 4503599627370496,
"bytes": 4503599627370495
}
],
"app": {
"system": "<string>",
"systemName": "<string>",
"operation": "<string>"
},
"position": 4503599627370496,
"progress": {
"done": 1,
"total": 1,
"unit": "frame"
},
"queueMs": 1,
"runMs": 1,
"output": {
"resource": "<string>",
"folder": "<string>",
"files": [
{
"name": "<string>",
"bytes": 4503599627370495
}
]
},
"previewsWithheld": true,
"log": "<string>"
},
"vertraulich": {
"action": "zusammenfassen",
"name": "<string>",
"sources": [
{
"kind": "ablage",
"label": "<string>"
}
],
"target": {
"kind": "mono"
},
"app": "<string>",
"language": "<string>",
"model": {
"provider": "<string>",
"locality": "lokal"
},
"position": 4503599627370496,
"code": "model_none",
"waited": true,
"long": true,
"netOpen": true,
"progress": {
"phase": "sources",
"of": 4503599627370496,
"elapsedMs": 4503599627370495,
"source": 4503599627370496
},
"start": {
"approval": "<string>",
"session": true,
"folder": "<string>",
"client": "<string>",
"netOpen": true
},
"revises": "<string>",
"neutral": true,
"result": {
"kept": true,
"until": "<string>",
"deletedAt": "<string>",
"filed": {
"share": "<string>",
"path": "<string>",
"at": "<string>"
},
"filing": "<string>",
"device": {
"name": "<string>",
"lastSeen": "<string>",
"offline": 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"
}Autorisierungen
Body
application/json