curl --request PATCH \
--url https://app.famulor.io/api/v1/settings/dark-windows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"gmail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": true,
"start": "22:00",
"end": "07:00"
}
}
}
'import requests
url = "https://app.famulor.io/api/v1/settings/dark-windows"
payload = { "settings": {
"gmail": {
"enabled": True,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": True,
"start": "22:00",
"end": "07:00"
}
} }
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({
settings: {
gmail: {enabled: true, start: '21:00', end: '08:00'},
outlook: {enabled: true, start: '22:00', end: '07:00'}
}
})
};
fetch('https://app.famulor.io/api/v1/settings/dark-windows', 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://app.famulor.io/api/v1/settings/dark-windows",
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([
'settings' => [
'gmail' => [
'enabled' => true,
'start' => '21:00',
'end' => '08:00'
],
'outlook' => [
'enabled' => true,
'start' => '22:00',
'end' => '07:00'
]
]
]),
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://app.famulor.io/api/v1/settings/dark-windows"
payload := strings.NewReader("{\n \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\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://app.famulor.io/api/v1/settings/dark-windows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/settings/dark-windows")
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 \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"settings": {
"voice": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"sms": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"email": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"whatsapp": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"telegram": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"slack": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"messenger": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"teams": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"discord": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"gchat": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"x": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"freshdesk": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"gmail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zendesk": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"servicenow": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"intercom": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zoho_mail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"agent_mail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"instagram": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zulip": {
"enabled": true,
"start": "21:00",
"end": "08:00"
}
},
"timezone": "Europe/Berlin"
}
}Update Dark Windows settings
Updates one or more proactive-outbound quiet-hour windows. Omitted channels stay unchanged. Times use 24-hour HH:MM format and a start later than the end creates an overnight window. Required scope: settings:write.
curl --request PATCH \
--url https://app.famulor.io/api/v1/settings/dark-windows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"gmail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": true,
"start": "22:00",
"end": "07:00"
}
}
}
'import requests
url = "https://app.famulor.io/api/v1/settings/dark-windows"
payload = { "settings": {
"gmail": {
"enabled": True,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": True,
"start": "22:00",
"end": "07:00"
}
} }
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({
settings: {
gmail: {enabled: true, start: '21:00', end: '08:00'},
outlook: {enabled: true, start: '22:00', end: '07:00'}
}
})
};
fetch('https://app.famulor.io/api/v1/settings/dark-windows', 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://app.famulor.io/api/v1/settings/dark-windows",
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([
'settings' => [
'gmail' => [
'enabled' => true,
'start' => '21:00',
'end' => '08:00'
],
'outlook' => [
'enabled' => true,
'start' => '22:00',
'end' => '07:00'
]
]
]),
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://app.famulor.io/api/v1/settings/dark-windows"
payload := strings.NewReader("{\n \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\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://app.famulor.io/api/v1/settings/dark-windows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/settings/dark-windows")
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 \"settings\": {\n \"gmail\": {\n \"enabled\": true,\n \"start\": \"21:00\",\n \"end\": \"08:00\"\n },\n \"outlook\": {\n \"enabled\": true,\n \"start\": \"22:00\",\n \"end\": \"07:00\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"settings": {
"voice": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"sms": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"email": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"whatsapp": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"telegram": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"slack": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"messenger": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"teams": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"discord": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"gchat": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"x": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"freshdesk": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"gmail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"outlook": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zendesk": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"servicenow": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"intercom": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zoho_mail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"agent_mail": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"instagram": {
"enabled": true,
"start": "21:00",
"end": "08:00"
},
"zulip": {
"enabled": true,
"start": "21:00",
"end": "08:00"
}
},
"timezone": "Europe/Berlin"
}
}Authorizations
API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.
Body
Sparse per-channel quiet-hour update. Omitted channels remain unchanged.
Show child attributes
Show child attributes
Response
The complete updated workspace channel windows.
Show child attributes
Show child attributes