cURL
curl --request POST \ --url https://api.tryhamsa.com/v1/voice-agents/voice-dictionaries/toggle-activation \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "dictionaryId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30", "voiceAgentId": "d949f13f-40d2-4e48-ac86-b66633070603", "isActive": true } '
{ "success": true, "message": "Voice dictionary activation toggled successfully", "messageKey": "VoiceDictionaryActivationToggledSuccessfully" }
Activates or deactivates a voice dictionary for a specific voice agent.
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
UUID of the voice dictionary.
"48f7656f-098b-4c43-b165-7cfd2cc8ac30"
UUID of the voice agent.
"d949f13f-40d2-4e48-ac86-b66633070603"
Activation status.
true
Successful response
"Voice dictionary activation toggled successfully"
"VoiceDictionaryActivationToggledSuccessfully"
Was this page helpful?