Update Compliance Settings#
Updates outbound calling rules for an agent. Send only the fields you want to change. An unknown agent id returns 404.
Authorizationstringheaderrequired
Bearer token in the format: Bearer {access_token}
agent_idstringpathrequired
Public agent id from List Agents
calling_hours_startstringbody
Local start time, H:MM. Send only when changing it. May be null.
calling_hours_endstringbody
Local end time, H:MM. Send only when changing it. May be null.
calling_daysarraybody
Days the agent may dial. Each item is one of mon, tue, wed, thu, fri, sat, sun. May be null.
calling_statesarraybody
Two-letter state codes. May be null.
enforce_state_legal_hoursbooleanbody
When true, state legal calling hours are enforced. May be null.
enforce_dncbooleanbody
When true, do-not-call rules are enforced. May be null.
override_compliancebooleanbody
When true, the compliance gate is overridden. May be null.
curl --request PATCH \
--url https://app.rizzdial.com/api/ai/agent/v2/manage/compliance/agent_123 \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{"calling_hours_start":"09:00","calling_hours_end":"20:00","calling_days":["mon","tue","wed","thu","fri"],"enforce_dnc":true}'successboolean
true when the settings are saved
messagestring
Short result message
dataobject
The saved settings