Create a new translation
URL: baseURL/scenario/{scenarioID}/translations/{channel}
Where {channel} path param can take the following values:
| Path param name | Description | Accepted valued |
|---|---|---|
| {channel} | The channel that this translation is applied for | sms, voice, viber. |
Method: POST
Headers:
Content-Type: application/json
principalId:{accountID}
Example request:
curl --location 'baseURL/scenario/7280ecaa-a132-4908-8f26-c1ecbe138d98/translations/voice' \
--header 'Content-Type: application/json' \
--header 'principalId: 1' \
--data-raw '{
"message": "Ваш пін: @@pin",
"language": "en_US",
"country": "UA"
}'
Example Response:
{
"created_date": "2020-09-04T07:41:42Z",
"updated_date": "2020-09-04T07:41:42Z",
"message": "Ваш пін: @@pin",
"language": "en_US",
"country": "UA",
"id": "05ccf437-b3c1-4963-912a-6aaaa5cb2c86"
}
Voice channel locales
| ISO Code | Country |
|---|---|
| el_GR | Greece |
| pl_PL | Poland |
| hu_HU | Hungary |
| sv_SE | Sweden |
| de_DE | Germany |
| en_GB | Great Britain |
| en_US | United States of America |
| es_ES | Spain |
| es_LA | Spain |
| fr_FR | France |
| it_IT | Italy |
| pt_BR | Portuguese |
| ru_RU | Russian |
Updated over 1 year ago
