Update des Herausgebers in den Entwurf übernehmen (Testlauf nötig)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update', 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}/catalog/{app}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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}/catalog/{app}/update")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"entry": {
"id": "<string>",
"version": "<string>",
"source": "release",
"publisher": {
"kind": "mono",
"name": "<string>",
"website": "<string>",
"help": {
"phone": "<string>",
"email": "jsmith@example.com",
"url": "<string>",
"address": "<string>",
"portal": "<string>"
}
},
"name": "<string>",
"purpose": "<string>",
"setup": "<string>",
"icon": {
"src": "<string>",
"plate": "light"
},
"digest": "<string>",
"dataClass": "öffentlich",
"services": [
{
"id": "<string>",
"way": "system",
"title": "<string>",
"text": "<string>",
"soon": "<string>",
"today": "<string>",
"kind": "<string>",
"auth": "none",
"addressNeeded": true,
"address": "<string>",
"addressHint": "<string>",
"usernameNeeded": true,
"suite": "microsoft",
"operations": [
{
"key": "<string>",
"title": "<string>",
"effect": "read"
}
],
"dataClass": "öffentlich",
"standard": true
}
],
"knowledge": [
"<string>"
],
"prompts": [
"<string>"
],
"state": "offered",
"installed": {
"appId": "<string>",
"appName": "<string>",
"version": "<string>",
"at": "<string>",
"by": "<string>",
"live": true,
"customised": true,
"systems": [
{
"service": "<string>",
"id": "<string>",
"name": "<string>",
"status": "<string>",
"keyNeeded": true
}
]
},
"update": {
"version": "<string>"
},
"offer": {
"org": "<string>",
"by": "<string>",
"at": "<string>",
"recommended": true
},
"pack": "<string>",
"mandant": {
"name": "<string>"
},
"category": "<string>",
"signature": {
"by": "release",
"name": "<string>",
"thumbprint": "<string>",
"keyChanged": true
},
"profile": {
"about": "<string>",
"services": "<string>",
"howToConnect": "<string>",
"requirements": "<string>",
"contact": {
"phone": "<string>",
"email": "jsmith@example.com",
"url": "<string>",
"address": "<string>",
"portal": "<string>"
},
"fallback": true
},
"cards": [
{
"id": "<string>",
"service": "<string>",
"operation": "<string>",
"view": "list",
"title": {
"de-CH": "<string>",
"fr-CH": "<string>",
"it-CH": "<string>",
"rm-CH": "<string>",
"en": "<string>"
}
}
]
},
"systems": [
{
"service": "<string>",
"ok": true,
"id": "<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"
}Update des Herausgebers in den Entwurf übernehmen (Testlauf nötig)
Update des Herausgebers in den Entwurf übernehmen (Testlauf nötig).
Im Chat mit «Mono Admin»: .
POST
/
mandanten
/
{id}
/
catalog
/
{app}
/
update
Update des Herausgebers in den Entwurf übernehmen (Testlauf nötig)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update', 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}/catalog/{app}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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}/catalog/{app}/update")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/catalog/{app}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"entry": {
"id": "<string>",
"version": "<string>",
"source": "release",
"publisher": {
"kind": "mono",
"name": "<string>",
"website": "<string>",
"help": {
"phone": "<string>",
"email": "jsmith@example.com",
"url": "<string>",
"address": "<string>",
"portal": "<string>"
}
},
"name": "<string>",
"purpose": "<string>",
"setup": "<string>",
"icon": {
"src": "<string>",
"plate": "light"
},
"digest": "<string>",
"dataClass": "öffentlich",
"services": [
{
"id": "<string>",
"way": "system",
"title": "<string>",
"text": "<string>",
"soon": "<string>",
"today": "<string>",
"kind": "<string>",
"auth": "none",
"addressNeeded": true,
"address": "<string>",
"addressHint": "<string>",
"usernameNeeded": true,
"suite": "microsoft",
"operations": [
{
"key": "<string>",
"title": "<string>",
"effect": "read"
}
],
"dataClass": "öffentlich",
"standard": true
}
],
"knowledge": [
"<string>"
],
"prompts": [
"<string>"
],
"state": "offered",
"installed": {
"appId": "<string>",
"appName": "<string>",
"version": "<string>",
"at": "<string>",
"by": "<string>",
"live": true,
"customised": true,
"systems": [
{
"service": "<string>",
"id": "<string>",
"name": "<string>",
"status": "<string>",
"keyNeeded": true
}
]
},
"update": {
"version": "<string>"
},
"offer": {
"org": "<string>",
"by": "<string>",
"at": "<string>",
"recommended": true
},
"pack": "<string>",
"mandant": {
"name": "<string>"
},
"category": "<string>",
"signature": {
"by": "release",
"name": "<string>",
"thumbprint": "<string>",
"keyChanged": true
},
"profile": {
"about": "<string>",
"services": "<string>",
"howToConnect": "<string>",
"requirements": "<string>",
"contact": {
"phone": "<string>",
"email": "jsmith@example.com",
"url": "<string>",
"address": "<string>",
"portal": "<string>"
},
"fallback": true
},
"cards": [
{
"id": "<string>",
"service": "<string>",
"operation": "<string>",
"view": "list",
"title": {
"de-CH": "<string>",
"fr-CH": "<string>",
"it-CH": "<string>",
"rm-CH": "<string>",
"en": "<string>"
}
}
]
},
"systems": [
{
"service": "<string>",
"ok": true,
"id": "<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"
}