curl -X PATCH https://api.voxmind.ai/organisations/42/predefined-texts/23 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Please clearly say your full name to complete voice registration."
}'
resp = requests.patch(
"https://api.voxmind.ai/organisations/42/predefined-texts/23",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"text": "Please clearly say your full name to complete voice registration."},
)
{
"id": 23,
"org_id": 42,
"language": "en-UK",
"text_code": 1,
"text": "Please clearly say your full name to complete voice registration.",
"created_at": "2025-03-15T10:00:00Z",
"updated_at": "2025-03-15T16:45:00Z"
}
Devices & Texts
Update Predefined Text
Update the content of an existing predefined text. Use this to refine prompt wording without creating a new record.
PATCH
/
organisations
/
{orgId}
/
predefined-texts
/
{textId}
curl -X PATCH https://api.voxmind.ai/organisations/42/predefined-texts/23 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Please clearly say your full name to complete voice registration."
}'
resp = requests.patch(
"https://api.voxmind.ai/organisations/42/predefined-texts/23",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"text": "Please clearly say your full name to complete voice registration."},
)
{
"id": 23,
"org_id": 42,
"language": "en-UK",
"text_code": 1,
"text": "Please clearly say your full name to complete voice registration.",
"created_at": "2025-03-15T10:00:00Z",
"updated_at": "2025-03-15T16:45:00Z"
}
Path Parameters
string
required
Your organisation’s unique identifier.
string
required
The numeric ID of the predefined text to update.
Request Body
integer
Your organisation’s numeric ID.
string
Updated language code. Note: changing the language while keeping the same
text_code is valid as long as the new language + text_code combination doesn’t already exist.integer
Updated category code.
string
The updated text content.
curl -X PATCH https://api.voxmind.ai/organisations/42/predefined-texts/23 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Please clearly say your full name to complete voice registration."
}'
resp = requests.patch(
"https://api.voxmind.ai/organisations/42/predefined-texts/23",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"text": "Please clearly say your full name to complete voice registration."},
)
{
"id": 23,
"org_id": 42,
"language": "en-UK",
"text_code": 1,
"text": "Please clearly say your full name to complete voice registration.",
"created_at": "2025-03-15T10:00:00Z",
"updated_at": "2025-03-15T16:45:00Z"
}

