provider surveys POST /api/projects/{project_id}/surveys/{id}/generate_translations/
@utdk/posthog /api/projects/{project_id}/surveys/{id}/generate_translations/
surveys_generate_translations_create
id path required
A UUID string identifying this survey.
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
surveysGenerateTranslationsCreate
POST/api/projects/{project_id}/surveys/{id}/generate_translations/

Parameters

required

A UUID string identifying this survey.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Language code to generate translations for, for example pt-BR.

Optional override for the source language code. Defaults to the survey's `base_language` (or 'en' if unset).

Whether to overwrite existing translations for this language.

Optional translation-only draft survey payload to translate instead of the last saved survey.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.surveysGenerateTranslationsCreate({
  "overwrite": false
})