Skip to Content
Pronunciation

Update a pronunciation table

Permissionpronunciation-tables:updateAuthentication
PATCH
/pronunciation-tables/{id}

Replaces any supplied fields. Slug is immutable. Archived tables cannot be updated. Supplying If-Match prevents lost updates; a semantic no-op returns the unchanged ETag.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 200
description?|

Null or a blank string clears the description.

Lengthlength <= 2000
definition?

Response Body

Updated table, or the unchanged table for a semantic no-op.

application/json
  1. response

Complete normalized table. configuration_errors is omitted for canonical rows. When present, it identifies invalid legacy or out-of-band stored fields and entries omitted from the safe definition. A malformed root/container or an encoded definition above 1,048,576 bytes returns the canonical empty definition; a legacy array above 250 entries is truncated before entries are normalized. Repair by replacing the complete definition with the current ETag.

id*string
Formatuuid
slug*string
name*string
description*string|null
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
definition*
configuration_errors?array<>

Exact repair diagnostics for legacy stored content. Invalid entries are not assumed to execute at call time. Correct every field and PATCH one complete definition using the current ETag.

Items1 <= items
Example Request
curl -X PATCH 'https://api.kejue.co/v1/pronunciation-tables/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "name": "string",  "description": "string",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "definition": {    "entries": [      {        "id": "string",        "from": "string",        "to": "string",        "match": "word",        "case_sensitive": true      }    ]  },  "configuration_errors": [    {      "path": "string",      "code": "string",      "message": "string"    }  ]}