Update a translation
This resource is used to update an existing translation based on its ID.
URL: baseURL/scenario/{scenarioID}/translations/{channel}/{translationID}
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: PUT
Headers:
Content-Type: application/json
principalId:{accountID}
Example request:
curl --location --request PUT 'baseURL/scenario/7280ecaa-a132-4908-8f26-c1ecbe138d98/translations/sms/3b4d2b40-7ffc-4f59-86ea-f02c7fcabd98' \
--header 'Content-Type: application/json' \
--header 'principalId: 1' \
--data-raw '{
"message": "Ваш ПІН: @@pin",
"country": "UA"
}'
Example Response:
{
"created_date": "2020-09-04T07:42:27Z",
"updated_date": "2020-09-04T07:44:43Z",
"message": "Ваш ПІН: @@pin",
"country": "UA",
"id": "3b4d2b40-7ffc-4f59-86ea-f02c7fcabd98"
}
Updated 6 months ago