PostHog · Schema
GenerateSurveyTranslationsRequest
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| target_language | string | Language code to generate translations for, for example pt-BR. |
| source_language | string | Source language code for the existing survey copy. |
| overwrite | boolean | Whether to overwrite existing translations for this language. |
| survey | object | Optional translation-only draft survey payload to translate instead of the last saved survey. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/GenerateSurveyTranslationsRequest",
"title": "GenerateSurveyTranslationsRequest",
"type": "object",
"properties": {
"target_language": {
"type": "string",
"description": "Language code to generate translations for, for example pt-BR."
},
"source_language": {
"type": "string",
"default": "en",
"description": "Source language code for the existing survey copy."
},
"overwrite": {
"type": "boolean",
"default": false,
"description": "Whether to overwrite existing translations for this language."
},
"survey": {
"type": "object",
"additionalProperties": {
"nullable": true,
"description": "Draft survey field value."
},
"description": "Optional translation-only draft survey payload to translate instead of the last saved survey."
}
},
"required": [
"target_language"
]
}