Skip to main content
PUT
/
custom
/
abbreviations
Replace TTS abbreviations
curl --request PUT \
  --url https://app.freyavoice.ai/api/v2/custom/abbreviations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "550e8400-e29b-41d4-a716-446655440000",
  "id": "650e8400-e29b-41d4-a716-446655440000",
  "abbreviations": [
    {
      "pattern": "AI",
      "replacement": "A I",
      "caseInsensitive": true
    },
    {
      "pattern": "\\$",
      "replacement": "dollars"
    }
  ]
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "abbreviations": [
        {
          "pattern": "<string>",
          "replacement": "<string>",
          "caseInsensitive": true
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
abbreviations
object[]
required
id
string<uuid>
name
string
Required string length: 1 - 200

Response

Abbreviations updated

success
enum<boolean>
required
Available options:
true
data
object
required