Listar regras do calendário
RegistosGET /calendar/rules
Lists the tenant's recurring holiday rules (fixed yearly date, nth or last weekday of a month, or an offset from Western or Orthodox Easter) in a data array without pagination. Each rule carries its observed-day policy, validity window and source. Rules that come from a followed template are not listed here. Requires automations:read.
Parâmetros
area_idService area id; when set, the list holds that area's rules plus the tenant-wide rules that have no area, and when omitted it holds every rule of the tenant.
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Calendar rules
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/calendar/rules" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/calendar/rules", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/calendar/rules",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/calendar/rules", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Calendar rules