Update Pre Conversation Media Settings#
Updates the audio played before a conversation. 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
Play media before the conversation starts.
mediaFilenamestringbody
File name of the media. May be null.
enabledForInboundbooleanbody
Play it on inbound calls.
enabledForOutboundbooleanbody
Play it on outbound calls.
enabledForWebCallbooleanbody
Play it on web calls.
curl --request PATCH \
--url https://app.rizzdial.com/api/ai/agent/v2/manage/call-handling/pre-conversation-media/agent_123 \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{"isEnabled":true,"mediaFilename":"hold.mp3","enabledForOutbound":true}'successboolean
true when the settings are saved
messagestring
Pre-conversation media settings updated successfully