cURL
curl --request PATCH \ --url https://api.tryhamsa.com/v1/voice-agents/voice-dictionaries/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Updated Medical Terms Dictionary", "words": [ { "word": "ibuprofen", "pronunciation": "eye-byoo-PROH-fen" } ] } '
{ "success": true, "message": "Voice dictionary updated successfully", "messageKey": "VoiceDictionaryUpdatedSuccessfully", "data": { "id": "48f7656f-098b-4c43-b165-7cfd2cc8ac30", "name": "Updated Medical Terms Dictionary", "words": [ {} ], "updatedAt": "2024-01-15T11:30:00Z" } }
Updates an existing voice dictionary.
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"
Updated name of the voice dictionary.
"Updated Medical Terms Dictionary"
Updated array of word pronunciation mappings.
Show child attributes
Successful response
true
"Voice dictionary updated successfully"
"VoiceDictionaryUpdatedSuccessfully"
Was this page helpful?