Skip to main content
POST
/
language
/
substitute
Substitute
curl --request POST \
  --url https://test.api.cxconnect.ai/language/substitute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "document": {
    "value": "<string>",
    "mime_type": "<string>",
    "language": "<string>",
    "meta": {}
  },
  "substitutions": [
    {
      "source": "<string>",
      "text": "<string>",
      "target": "<string>",
      "substitution": "<string>"
    }
  ],
  "meta": {
    "foo": "bar"
  }
}'
{
  "document": {
    "value": "<string>",
    "mime_type": "<string>",
    "language": "<string>",
    "meta": {}
  },
  "original": {
    "value": "<string>",
    "mime_type": "<string>",
    "language": "<string>",
    "meta": {}
  },
  "meta": {
    "foo": "bar"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
document
object
substitutions
object[]
meta
object
Example:
{ "foo": "bar" }

Response

Successful substitution response

document
object
original
object
meta
object
Example:
{ "foo": "bar" }
I