curl --request DELETE \
"https://api.inworld.ai/pronunciations/v1/workspaces/${INWORLD_WORKSPACE_ID}/pronunciationDictionaries/${PRONUNCIATION_DICTIONARY_ID}?etag=${PRONUNCIATION_DICTIONARY_ETAG}" \
--header "Authorization: Basic ${INWORLD_API_KEY}"import os
import requests
workspace_id = os.environ["INWORLD_WORKSPACE_ID"]
dictionary_id = os.environ["PRONUNCIATION_DICTIONARY_ID"]
url = (
"https://api.inworld.ai/pronunciations/v1/"
f"workspaces/{workspace_id}/pronunciationDictionaries/{dictionary_id}"
)
response = requests.delete(
url,
headers={"Authorization": f"Basic {os.environ['INWORLD_API_KEY']}"},
params={"etag": os.environ["PRONUNCIATION_DICTIONARY_ETAG"]},
)
response.raise_for_status()const { INWORLD_API_KEY, INWORLD_WORKSPACE_ID, PRONUNCIATION_DICTIONARY_ID, PRONUNCIATION_DICTIONARY_ETAG } = process.env;
const url = new URL(`https://api.inworld.ai/pronunciations/v1/workspaces/${INWORLD_WORKSPACE_ID}/pronunciationDictionaries/${PRONUNCIATION_DICTIONARY_ID}`);
url.searchParams.set('etag', PRONUNCIATION_DICTIONARY_ETAG);
const response = await fetch(url, {
method: 'DELETE',
headers: { Authorization: `Basic ${INWORLD_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());{}{
"code": 10,
"message": "Pronunciation dictionary etag does not match",
"details": []
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Delete a pronunciation dictionary
Delete a named pronunciation dictionary and all of its entries.
curl --request DELETE \
"https://api.inworld.ai/pronunciations/v1/workspaces/${INWORLD_WORKSPACE_ID}/pronunciationDictionaries/${PRONUNCIATION_DICTIONARY_ID}?etag=${PRONUNCIATION_DICTIONARY_ETAG}" \
--header "Authorization: Basic ${INWORLD_API_KEY}"import os
import requests
workspace_id = os.environ["INWORLD_WORKSPACE_ID"]
dictionary_id = os.environ["PRONUNCIATION_DICTIONARY_ID"]
url = (
"https://api.inworld.ai/pronunciations/v1/"
f"workspaces/{workspace_id}/pronunciationDictionaries/{dictionary_id}"
)
response = requests.delete(
url,
headers={"Authorization": f"Basic {os.environ['INWORLD_API_KEY']}"},
params={"etag": os.environ["PRONUNCIATION_DICTIONARY_ETAG"]},
)
response.raise_for_status()const { INWORLD_API_KEY, INWORLD_WORKSPACE_ID, PRONUNCIATION_DICTIONARY_ID, PRONUNCIATION_DICTIONARY_ETAG } = process.env;
const url = new URL(`https://api.inworld.ai/pronunciations/v1/workspaces/${INWORLD_WORKSPACE_ID}/pronunciationDictionaries/${PRONUNCIATION_DICTIONARY_ID}`);
url.searchParams.set('etag', PRONUNCIATION_DICTIONARY_ETAG);
const response = await fetch(url, {
method: 'DELETE',
headers: { Authorization: `Basic ${INWORLD_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());{}{
"code": 10,
"message": "Pronunciation dictionary etag does not match",
"details": []
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}etag. A stale value returns HTTP 409 Conflict; get the dictionary again before retrying the deletion. Set allowMissing=true when an already-absent dictionary should be treated as a successful deletion; a non-empty etag is still required.Authorizations
Your authentication credentials. For Basic authentication, send Basic $INWORLD_API_KEY. Use a Standard API key for the target workspace. Voices Read access permits list and get; Voices Write access permits all five methods.
Path Parameters
ID of the workspace that owns the dictionary. It must match a workspace accessible to the API key.
1 - 61^[a-z0-9_-]+$"my-workspace"
Service-assigned UUID from the dictionary's resource name.
"2d470a1e-0262-4f22-9b46-5353d454d988"
Query Parameters
Current dictionary etag from a get, list, create, or update response.
1When true, deleting a dictionary that is already absent succeeds. A non-empty etag is still required, but it is not compared when the dictionary is absent.
Response
The dictionary was deleted.
The response is of type object.