Update organization business hours configuration
curl --request PUT \
--url https://your-instance.example.com/api/organizations/{organizationId}/business-hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"wednesday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"thursday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"friday": {
"enabled": true,
"start": "09:00",
"end": "15:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": false
}
'import requests
url = "https://your-instance.example.com/api/organizations/{organizationId}/business-hours"
payload = {
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"wednesday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"thursday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"friday": {
"enabled": True,
"start": "09:00",
"end": "15:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timezone: 'America/New_York',
businessHours: {
monday: {enabled: true, start: '09:00', end: '17:00'},
tuesday: {enabled: true, start: '09:00', end: '17:00'},
wednesday: {enabled: true, start: '09:00', end: '17:00'},
thursday: {enabled: true, start: '09:00', end: '17:00'},
friday: {enabled: true, start: '09:00', end: '15:00'}
},
holidays: [{date: '2026-12-25', label: 'Christmas Day'}],
exceptionalHours: [],
allowUserBusinessHoursOverride: false
})
};
fetch('https://your-instance.example.com/api/organizations/{organizationId}/business-hours', 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://your-instance.example.com/api/organizations/{organizationId}/business-hours",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'timezone' => 'America/New_York',
'businessHours' => [
'monday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'tuesday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'wednesday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'thursday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'friday' => [
'enabled' => true,
'start' => '09:00',
'end' => '15:00'
]
],
'holidays' => [
[
'date' => '2026-12-25',
'label' => 'Christmas Day'
]
],
'exceptionalHours' => [
],
'allowUserBusinessHoursOverride' => false
]),
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://your-instance.example.com/api/organizations/{organizationId}/business-hours"
payload := strings.NewReader("{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}")
req, _ := http.NewRequest("PUT", 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.put("https://your-instance.example.com/api/organizations/{organizationId}/business-hours")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/{organizationId}/business-hours")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": false
}
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Organizations
Update organization business hours configuration
Partially updates business-hours settings: timezone, weekly schedule (or null to clear), holidays, exceptional hours, and the allowUserBusinessHoursOverride toggle. Validates IANA timezones, HH:mm times, and YYYY-MM-DD dates. Admin can update own org; SuperAdmin can update any org.
PUT
/
api
/
organizations
/
{organizationId}
/
business-hours
Update organization business hours configuration
curl --request PUT \
--url https://your-instance.example.com/api/organizations/{organizationId}/business-hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"wednesday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"thursday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
},
"friday": {
"enabled": true,
"start": "09:00",
"end": "15:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": false
}
'import requests
url = "https://your-instance.example.com/api/organizations/{organizationId}/business-hours"
payload = {
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"wednesday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"thursday": {
"enabled": True,
"start": "09:00",
"end": "17:00"
},
"friday": {
"enabled": True,
"start": "09:00",
"end": "15:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timezone: 'America/New_York',
businessHours: {
monday: {enabled: true, start: '09:00', end: '17:00'},
tuesday: {enabled: true, start: '09:00', end: '17:00'},
wednesday: {enabled: true, start: '09:00', end: '17:00'},
thursday: {enabled: true, start: '09:00', end: '17:00'},
friday: {enabled: true, start: '09:00', end: '15:00'}
},
holidays: [{date: '2026-12-25', label: 'Christmas Day'}],
exceptionalHours: [],
allowUserBusinessHoursOverride: false
})
};
fetch('https://your-instance.example.com/api/organizations/{organizationId}/business-hours', 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://your-instance.example.com/api/organizations/{organizationId}/business-hours",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'timezone' => 'America/New_York',
'businessHours' => [
'monday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'tuesday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'wednesday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'thursday' => [
'enabled' => true,
'start' => '09:00',
'end' => '17:00'
],
'friday' => [
'enabled' => true,
'start' => '09:00',
'end' => '15:00'
]
],
'holidays' => [
[
'date' => '2026-12-25',
'label' => 'Christmas Day'
]
],
'exceptionalHours' => [
],
'allowUserBusinessHoursOverride' => false
]),
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://your-instance.example.com/api/organizations/{organizationId}/business-hours"
payload := strings.NewReader("{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}")
req, _ := http.NewRequest("PUT", 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.put("https://your-instance.example.com/api/organizations/{organizationId}/business-hours")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/{organizationId}/business-hours")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timezone\": \"America/New_York\",\n \"businessHours\": {\n \"monday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"tuesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"wednesday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"thursday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"17:00\"\n },\n \"friday\": {\n \"enabled\": true,\n \"start\": \"09:00\",\n \"end\": \"15:00\"\n }\n },\n \"holidays\": [\n {\n \"date\": \"2026-12-25\",\n \"label\": \"Christmas Day\"\n }\n ],\n \"exceptionalHours\": [],\n \"allowUserBusinessHoursOverride\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"timezone": "America/New_York",
"businessHours": {
"monday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
}
},
"holidays": [
{
"date": "2026-12-25",
"label": "Christmas Day"
}
],
"exceptionalHours": [],
"allowUserBusinessHoursOverride": false
}
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
IANA timezone (e.g. America/New_York)
Weekly schedule keyed by lowercase day name; pass null to clear.
Show child attributes
Show child attributes
Example:
{ "monday": { "enabled": true, "start": "09:00", "end": "17:00" }, "tuesday": { "enabled": true, "start": "09:00", "end": "17:00" }, "wednesday": { "enabled": true, "start": "09:00", "end": "17:00" }, "thursday": { "enabled": true, "start": "09:00", "end": "17:00" }, "friday": { "enabled": true, "start": "09:00", "end": "17:00" }, "saturday": { "enabled": false, "start": "09:00", "end": "17:00" }, "sunday": { "enabled": false, "start": "09:00", "end": "17:00" } }
Maximum array length:
200Show child attributes
Show child attributes
Maximum array length:
200Show child attributes
Show child attributes
Response
Business hours updated
Available options:
true Show child attributes
Show child attributes
Example:
{ "timezone": "America/New_York", "businessHours": { "monday": { "enabled": true, "start": "09:00", "end": "17:00" }, "friday": { "enabled": true, "start": "09:00", "end": "15:00" } }, "holidays": [ { "date": "2026-12-25", "label": "Christmas Day" } ], "exceptionalHours": [ { "date": "2026-12-24", "closed": false, "start": "09:00", "end": "13:00", "label": "Christmas Eve" } ], "allowUserBusinessHoursOverride": false }
⌘I