Update the name and/or items of an existing pronunciation dictionary. Uses optimistic locking — if the dictionary was modified concurrently, the request returns 409 Conflict.
PATCH
/
pronunciation_dicts
/
{id}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const pronunciationDict = await client.pronunciationDicts.update(
'c215a3e1-be41-4701-97e8-1d3c22f9a5b7',
);
console.log(pronunciationDict.data);
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
pronunciation_dict = client.pronunciation_dicts.update(
id="c215a3e1-be41-4701-97e8-1d3c22f9a5b7",
)
print(pronunciation_dict.data)
Request body for updating a pronunciation dictionary. At least one field must be provided.
name
string
Updated dictionary name.
Required string length: 1 - 255
Example:
"Updated Brand Names"
items
object[]
Updated list of pronunciation items (alias or phoneme type).
Required array length: 1 - 100 elements
A single pronunciation dictionary item. Use type 'alias' to replace matched text with a spoken alias, or type 'phoneme' to specify exact pronunciation using IPA notation.
Option 1
Option 2
Show child attributes
Response
Pronunciation dictionary updated successfully.
Response containing a single pronunciation dictionary.
data
object
A pronunciation dictionary record.
Show child attributes
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const pronunciationDict = await client.pronunciationDicts.update(
'c215a3e1-be41-4701-97e8-1d3c22f9a5b7',
);
console.log(pronunciationDict.data);
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
pronunciation_dict = client.pronunciation_dicts.update(
id="c215a3e1-be41-4701-97e8-1d3c22f9a5b7",
)
print(pronunciation_dict.data)