Update a Team inbox
Updates the settings of a Team inbox. Omitted settings are left unchanged and members are not affected. Unlike the Team inbox read endpoints, the response also includes the configuration fields (icon, icon_color, distribution_mode, active_assigned_requests_limit, impossible_distribution_behavior, requests_inactive_on_waiting, requests_inactive_on_snoozed, requests_inactive_when_pending_approval and unassigned_requests_behavior). This endpoint may change or be removed without prior notice.
PATCH
/
v1
/
team_inboxes
/
{uid}
Update a Team inbox
curl --request PATCH \
--url https://api.siit.io/v1/team_inboxes/{uid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>",
"icon": "<string>",
"icon_color": "<string>",
"active_assigned_requests_limit": 1,
"requests_inactive_on_waiting": true,
"requests_inactive_on_snoozed": true,
"requests_inactive_when_pending_approval": true
}
'import requests
url = "https://api.siit.io/v1/team_inboxes/{uid}"
payload = {
"value": "<string>",
"icon": "<string>",
"icon_color": "<string>",
"active_assigned_requests_limit": 1,
"requests_inactive_on_waiting": True,
"requests_inactive_on_snoozed": True,
"requests_inactive_when_pending_approval": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: '<string>',
icon: '<string>',
icon_color: '<string>',
active_assigned_requests_limit: 1,
requests_inactive_on_waiting: true,
requests_inactive_on_snoozed: true,
requests_inactive_when_pending_approval: true
})
};
fetch('https://api.siit.io/v1/team_inboxes/{uid}', 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://api.siit.io/v1/team_inboxes/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'value' => '<string>',
'icon' => '<string>',
'icon_color' => '<string>',
'active_assigned_requests_limit' => 1,
'requests_inactive_on_waiting' => true,
'requests_inactive_on_snoozed' => true,
'requests_inactive_when_pending_approval' => true
]),
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://api.siit.io/v1/team_inboxes/{uid}"
payload := strings.NewReader("{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.siit.io/v1/team_inboxes/{uid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/team_inboxes/{uid}")
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'
request.body = "{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}"
response = http.request(request)
puts response.read_body{
"result": {
"uid": "<string>",
"value": "<string>",
"members": [
{
"team_inbox_uid": "<string>",
"user_uid": "<string>",
"excluded_from_distribution": true,
"business_calendar_uid": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"icon": "<string>",
"icon_color": "<string>",
"distribution_mode": "manual",
"active_assigned_requests_limit": 123,
"impossible_distribution_behavior": "do_not_assign",
"requests_inactive_on_waiting": true,
"requests_inactive_on_snoozed": true,
"requests_inactive_when_pending_approval": true,
"unassigned_requests_behavior": "none"
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}Authorizations
Body
application/json
Update a Team inbox
curl --request PATCH \
--url https://api.siit.io/v1/team_inboxes/{uid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>",
"icon": "<string>",
"icon_color": "<string>",
"active_assigned_requests_limit": 1,
"requests_inactive_on_waiting": true,
"requests_inactive_on_snoozed": true,
"requests_inactive_when_pending_approval": true
}
'import requests
url = "https://api.siit.io/v1/team_inboxes/{uid}"
payload = {
"value": "<string>",
"icon": "<string>",
"icon_color": "<string>",
"active_assigned_requests_limit": 1,
"requests_inactive_on_waiting": True,
"requests_inactive_on_snoozed": True,
"requests_inactive_when_pending_approval": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: '<string>',
icon: '<string>',
icon_color: '<string>',
active_assigned_requests_limit: 1,
requests_inactive_on_waiting: true,
requests_inactive_on_snoozed: true,
requests_inactive_when_pending_approval: true
})
};
fetch('https://api.siit.io/v1/team_inboxes/{uid}', 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://api.siit.io/v1/team_inboxes/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'value' => '<string>',
'icon' => '<string>',
'icon_color' => '<string>',
'active_assigned_requests_limit' => 1,
'requests_inactive_on_waiting' => true,
'requests_inactive_on_snoozed' => true,
'requests_inactive_when_pending_approval' => true
]),
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://api.siit.io/v1/team_inboxes/{uid}"
payload := strings.NewReader("{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.siit.io/v1/team_inboxes/{uid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/team_inboxes/{uid}")
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'
request.body = "{\n \"value\": \"<string>\",\n \"icon\": \"<string>\",\n \"icon_color\": \"<string>\",\n \"active_assigned_requests_limit\": 1,\n \"requests_inactive_on_waiting\": true,\n \"requests_inactive_on_snoozed\": true,\n \"requests_inactive_when_pending_approval\": true\n}"
response = http.request(request)
puts response.read_body{
"result": {
"uid": "<string>",
"value": "<string>",
"members": [
{
"team_inbox_uid": "<string>",
"user_uid": "<string>",
"excluded_from_distribution": true,
"business_calendar_uid": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"icon": "<string>",
"icon_color": "<string>",
"distribution_mode": "manual",
"active_assigned_requests_limit": 123,
"impossible_distribution_behavior": "do_not_assign",
"requests_inactive_on_waiting": true,
"requests_inactive_on_snoozed": true,
"requests_inactive_when_pending_approval": true,
"unassigned_requests_behavior": "none"
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}{
"error": "<string>",
"troubleshoot": "<string>"
}
