Create a term substitution
This endpoint creates a term substitution.
HTTP Request
POST https://app.resemble.ai/api/v2/term_substitutions
JSON Body Parameters | Type | Description |
---|---|---|
original_text | string | text being replaced e.g Vodaphone |
replacement_text | string | text to replace with e.g voduhfone |
HTTP Response
{
"success": true,
"item": {
"uuid": <string>,
"original_text": <string>,
"replacement_text": <string>,
"created_at": <UTC Date>,
"updated_at": <UTC Date>,
}
}
Examples
NodeJS
1
2
3
4
5
6
import { Resemble } from '@resemble/node'
Resemble.setApiKey('YOUR_API_TOKEN')
const response = Resemble.v2.termSubstitutions.create('Original', 'Replacement')
const substitution = response.item
Try it out
API Key:
JSON Body: