«Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten»
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/operations/updates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>",
"members": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/operations/updates"
payload = {
"version": "<string>",
"members": ["<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({version: '<string>', members: ['<string>']})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/operations/updates', 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}/operations/updates",
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([
'version' => '<string>',
'members' => [
'<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}/operations/updates"
payload := strings.NewReader("{\n \"version\": \"<string>\",\n \"members\": [\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}/operations/updates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"<string>\",\n \"members\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/operations/updates")
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 \"version\": \"<string>\",\n \"members\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"updates": {
"updater": "running",
"ring": "canary",
"ringText": "<string>",
"ringCustom": true,
"window": "<string>",
"windowText": "<string>",
"windowCustom": true,
"auto": true,
"feedCustom": true,
"checkedAt": "<string>",
"nextWindowAt": "<string>",
"available": {
"version": "<string>",
"publishedAt": "<string>",
"eligibleAt": "<string>",
"migration": "<string>"
},
"pending": {
"version": "<string>",
"waitsFor": "window"
},
"paused": {
"at": "<string>",
"by": "<string>"
},
"requested": {
"at": "<string>",
"by": "<string>"
},
"refusedRequest": "<string>",
"last": {
"at": "<string>",
"from": "<string>",
"to": "<string>",
"result": "ok",
"reason": "<string>",
"durationSec": 123,
"trigger": "window",
"early": true,
"host": true
},
"history": [
{
"at": "<string>",
"from": "<string>",
"to": "<string>",
"result": "ok",
"reason": "<string>",
"durationSec": 123,
"trigger": "window",
"early": true,
"host": true
}
],
"problem": {
"code": "<string>",
"text": "<string>",
"at": "<string>",
"cause": "<string>",
"line": "<string>",
"path": "<string>"
},
"shared": true,
"can": {
"now": "<string>",
"pause": "<string>"
},
"windowParts": {
"days": [
3
],
"from": 123,
"to": 123,
"always": true
},
"refusedCode": "<string>",
"repaired": {
"at": "<string>",
"from": "adopt"
},
"canCode": {
"now": "<string>",
"pause": "<string>"
},
"early": {
"version": "<string>",
"publishedAt": "<string>",
"eligibleAt": "<string>",
"migration": "<string>",
"requested": {
"at": "<string>",
"by": "<string>"
},
"can": "<string>",
"canCode": "<string>"
},
"host": {
"self": "<string>",
"members": [
{
"key": "<string>",
"version": "<string>"
}
],
"version": "<string>",
"early": true,
"eligibleAt": "<string>",
"waiting": {
"version": "<string>",
"early": true,
"confirmed": [
"<string>"
],
"at": "<string>"
},
"confirmedHere": true,
"can": "<string>",
"canCode": "<string>"
},
"turnOn": "<string>",
"offReason": "installed_without",
"settingUp": true,
"takeRefused": {
"code": "<string>",
"version": "<string>",
"at": "<string>",
"text": "<string>"
},
"backup": {
"can": "<string>",
"canCode": "<string>",
"requested": {
"at": "<string>",
"by": "<string>",
"keepDays": 123,
"copyTo": "<string>"
},
"waiting": {
"confirmed": [
"<string>"
],
"at": "<string>"
},
"confirmedHere": true,
"last": {
"at": "<string>",
"ok": true,
"code": "<string>",
"text": "<string>"
}
}
},
"text": "<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"
}«Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten»
«Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten».
Im Chat mit «Mono Admin»: .
POST
/
mandanten
/
{id}
/
operations
/
updates
«Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten»
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/operations/updates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>",
"members": [
"<string>"
]
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/operations/updates"
payload = {
"version": "<string>",
"members": ["<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({version: '<string>', members: ['<string>']})
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/operations/updates', 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}/operations/updates",
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([
'version' => '<string>',
'members' => [
'<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}/operations/updates"
payload := strings.NewReader("{\n \"version\": \"<string>\",\n \"members\": [\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}/operations/updates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"<string>\",\n \"members\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/operations/updates")
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 \"version\": \"<string>\",\n \"members\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"updates": {
"updater": "running",
"ring": "canary",
"ringText": "<string>",
"ringCustom": true,
"window": "<string>",
"windowText": "<string>",
"windowCustom": true,
"auto": true,
"feedCustom": true,
"checkedAt": "<string>",
"nextWindowAt": "<string>",
"available": {
"version": "<string>",
"publishedAt": "<string>",
"eligibleAt": "<string>",
"migration": "<string>"
},
"pending": {
"version": "<string>",
"waitsFor": "window"
},
"paused": {
"at": "<string>",
"by": "<string>"
},
"requested": {
"at": "<string>",
"by": "<string>"
},
"refusedRequest": "<string>",
"last": {
"at": "<string>",
"from": "<string>",
"to": "<string>",
"result": "ok",
"reason": "<string>",
"durationSec": 123,
"trigger": "window",
"early": true,
"host": true
},
"history": [
{
"at": "<string>",
"from": "<string>",
"to": "<string>",
"result": "ok",
"reason": "<string>",
"durationSec": 123,
"trigger": "window",
"early": true,
"host": true
}
],
"problem": {
"code": "<string>",
"text": "<string>",
"at": "<string>",
"cause": "<string>",
"line": "<string>",
"path": "<string>"
},
"shared": true,
"can": {
"now": "<string>",
"pause": "<string>"
},
"windowParts": {
"days": [
3
],
"from": 123,
"to": 123,
"always": true
},
"refusedCode": "<string>",
"repaired": {
"at": "<string>",
"from": "adopt"
},
"canCode": {
"now": "<string>",
"pause": "<string>"
},
"early": {
"version": "<string>",
"publishedAt": "<string>",
"eligibleAt": "<string>",
"migration": "<string>",
"requested": {
"at": "<string>",
"by": "<string>"
},
"can": "<string>",
"canCode": "<string>"
},
"host": {
"self": "<string>",
"members": [
{
"key": "<string>",
"version": "<string>"
}
],
"version": "<string>",
"early": true,
"eligibleAt": "<string>",
"waiting": {
"version": "<string>",
"early": true,
"confirmed": [
"<string>"
],
"at": "<string>"
},
"confirmedHere": true,
"can": "<string>",
"canCode": "<string>"
},
"turnOn": "<string>",
"offReason": "installed_without",
"settingUp": true,
"takeRefused": {
"code": "<string>",
"version": "<string>",
"at": "<string>",
"text": "<string>"
},
"backup": {
"can": "<string>",
"canCode": "<string>",
"requested": {
"at": "<string>",
"by": "<string>",
"keepDays": 123,
"copyTo": "<string>"
},
"waiting": {
"confirmed": [
"<string>"
],
"at": "<string>"
},
"confirmedHere": true,
"last": {
"at": "<string>",
"ok": true,
"code": "<string>",
"text": "<string>"
}
}
},
"text": "<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
Body
application/json