Ablageregel ändern, pausieren, fortsetzen
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}', 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}/filing-rules/{rid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
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"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}"
req, _ := http.NewRequest("PATCH", url, nil)
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.patch("https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
response = http.request(request)
puts response.read_body{
"rule": {
"name": "<string>",
"source": {
"connector": "<string>",
"inbox": "<string>",
"share": "<string>",
"folder": "<string>"
},
"types": [],
"words": [],
"sender": "",
"fileName": "",
"customers": [],
"target": {
"share": "<string>",
"folder": "<string>"
},
"model": false,
"id": "<string>",
"on": true,
"by": {
"id": "<string>",
"name": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"sourceName": "<string>",
"targetName": "<string>",
"counts": {
"waiting": 123,
"filed": 123,
"rejected": 123,
"failed": 123,
"device": 123,
"held": 123
},
"last": [
{
"id": "<string>",
"rule": "<string>",
"name": "<string>",
"state": "waiting",
"at": "<string>",
"path": "<string>",
"approval": "<string>",
"result": "<string>",
"held": "rights"
}
],
"allowedUntil": "<string>",
"blocked": "<string>",
"langUsed": "de-CH",
"lang": "de-CH",
"blockedSaid": {
"code": "<string>",
"vars": {}
},
"held": "<string>",
"heldSaid": {
"code": "<string>",
"vars": {}
}
}
}{
"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"
}Ablageregel ändern, pausieren, fortsetzen
Ablageregel ändern, pausieren, fortsetzen.
Im Chat mit «Mono Admin»: .
PATCH
/
mandanten
/
{id}
/
filing-rules
/
{rid}
Ablageregel ändern, pausieren, fortsetzen
curl --request PATCH \
--url https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}
};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}', 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}/filing-rules/{rid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
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"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}"
req, _ := http.NewRequest("PATCH", url, nil)
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.patch("https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/filing-rules/{rid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
response = http.request(request)
puts response.read_body{
"rule": {
"name": "<string>",
"source": {
"connector": "<string>",
"inbox": "<string>",
"share": "<string>",
"folder": "<string>"
},
"types": [],
"words": [],
"sender": "",
"fileName": "",
"customers": [],
"target": {
"share": "<string>",
"folder": "<string>"
},
"model": false,
"id": "<string>",
"on": true,
"by": {
"id": "<string>",
"name": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"sourceName": "<string>",
"targetName": "<string>",
"counts": {
"waiting": 123,
"filed": 123,
"rejected": 123,
"failed": 123,
"device": 123,
"held": 123
},
"last": [
{
"id": "<string>",
"rule": "<string>",
"name": "<string>",
"state": "waiting",
"at": "<string>",
"path": "<string>",
"approval": "<string>",
"result": "<string>",
"held": "rights"
}
],
"allowedUntil": "<string>",
"blocked": "<string>",
"langUsed": "de-CH",
"lang": "de-CH",
"blockedSaid": {
"code": "<string>",
"vars": {}
},
"held": "<string>",
"heldSaid": {
"code": "<string>",
"vars": {}
}
}
}{
"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"
}