Create a new translation

URL: baseURL/scenario/{scenarioID}/translations/{channel}

Where {channel} path param can take the following values:

Path param nameDescriptionAccepted valued
{channel}The channel that this translation is applied forsms, 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 CodeCountry
el_GRGreece
pl_PLPoland
hu_HUHungary
sv_SESweden
de_DEGermany
en_GBGreat Britain
en_USUnited States of America
es_ESSpain
es_LASpain
fr_FRFrance
it_ITItaly
pt_BRPortuguese
ru_RURussian