Obter o calendário
RegistosGET /calendar
Read the tenant's time zone, working week and template adoption
Returns the tenant-wide working calendar: time zone, working weekdays (0 = Sunday to 6 = Saturday) and the holiday template it follows, if any. When the tenant has never saved a calendar, the response is the built-in default (the default time zone and Monday to Friday) rather than a 404. Requires the automations:read permission.
Devolve
200 Tenant calendar
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/calendar" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/calendar", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/calendar",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/calendar", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Tenant calendar