PostHog · Schema

GenerateSurveyTranslationsResponse

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
translations object Survey-level translation patch keyed by language.
questions array Question-level translation patches keyed by question id and language.
generated_field_paths array Editor field paths generated by AI and safe to highlight as draft content.
trace_id string LLM trace id for debugging and feedback.
View JSON Schema on GitHub

JSON Schema

posthog-generatesurveytranslationsresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GenerateSurveyTranslationsResponse",
  "title": "GenerateSurveyTranslationsResponse",
  "type": "object",
  "properties": {
    "translations": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/GeneratedSurveyRootTranslation"
      },
      "description": "Survey-level translation patch keyed by language."
    },
    "questions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GeneratedSurveyQuestionTranslationPatch"
      },
      "description": "Question-level translation patches keyed by question id and language."
    },
    "generated_field_paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Editor field paths generated by AI and safe to highlight as draft content."
    },
    "trace_id": {
      "type": "string",
      "description": "LLM trace id for debugging and feedback."
    }
  },
  "required": [
    "generated_field_paths",
    "questions",
    "trace_id",
    "translations"
  ]
}