Newer Version Available

This content describes an older version of this product. View Latest

Add or Update the Translated Value of Multiple Survey Fields in One or More Languages

If one or more survey fields can be translated or are already translated, you can add or update the translated values of the survey fields in the languages into which survey fields can be translated. This resource is available in REST API version 48.0 and later.

This URI can only be used for the flow process type Survey.

Note

Syntax

URI
/services/data/vXX.X/localizedvalue/records/upsert
Formats
JSON
HTTP methods
POST
Request body JSON example
1[
2  {
3    "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
4    "language": "en_US",
5    "value": "China"
6  },
7  {
8    "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
9    "language": "zh_CN",
10    "value": "中國"
11  }
12]
Request parameters
Parameter Description
developerName Required. Developer name of the flow field.
language Required. Language into which the flow field is translated.
value Required. New or updated value of the flow field.
Response parameters
Parameter Description
createdBy ID of the user who translated the flow field.
createdDate Date and time the flow field was translated.
developerName Developer name of the flow field.
language Language into which the flow field was translated.
value Updated value of the flow field.
isOutofDate Indicates if the flow field is out of date.

Example

1[
2  {
3    "createdBy": "005xxx",
4    "createdDate": "2018-09-14T00:10:30Z",
5    "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
6    "language": "en_US",
7    "value": "China",
8    "isOutOfDate": false
9  },
10  {
11    "createdBy": "005xxx",
12    "createdDate": "2018-09-14T00:10:30Z",
13    "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
14    "language": "zh_CN",
15    "value": "中國",
16    "isOutOfDate": false
17  }
18]