V2 Update Max Duration Settings#
Updates the max call length for a V2 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
isEnabledbooleanbody
Turn the max-duration limit on or off. Send only when changing it.
maxDurationSecondsintegerbody
Max call length in seconds. Min 60, max 7200.
maxDurationInTransferSecondsintegerbody
Max length after a transfer, in seconds. Min 60, max 14400.
curl --request PATCH \
--url https://app.rizzdial.com/api/ai/agent/v2/manage/call-handling/max-duration/agent_123 \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{"isEnabled":true,"maxDurationSeconds":3600}'successboolean
true when the settings are saved
messagestring
Max duration settings updated successfully