Tool

Survey update

Survey Update is a powerful AI tool by PostHog that enables you to seamlessly update existing surveys by ID, including modifying survey names, descriptions, questions, scheduling, and other key properties.

posthog

Features

  • Edit survey name, description, and type (popover, API, widget, external) easily.
  • Support multiple question types: open-ended, rating, single choice, multiple choice, and NPS.
  • Configure advanced branching and response-based flows for personalized survey experiences.
  • Customizable scheduling options: once, recurring, or always with start and end dates.
  • Comprehensive targeting filters based on user properties, device types, events, and feature flags.

Benefits

  • Enhance user feedback accuracy with dynamic question updates.
  • Save time by managing surveys centrally without recreating them.
  • Increase survey completion rates via tailored branching logic and display conditions.
  • Optimize user engagement with detailed scheduling and device targeting.
  • Gain actionable insights through flexible and rich survey customization options.

Description

Update an existing survey by ID. Can update name, description, questions, scheduling, and other survey properties.

Parameters

19 parameters

NameTypeDescription
namestring

descriptionstring

typeenum

questionsarray

conditionsobject

appearanceobject

scheduleenum

Survey scheduling behavior: 'once' = show once per user (default), 'recurring' = repeat based on iteration_count and iteration_frequency_days settings, 'always' = show every time conditions are met (mainly for widget surveys)

start_datestring

When the survey should start being shown to users. Setting this will launch the survey

end_datestring

When the survey stopped being shown to users. Setting this will complete the survey.

archivedboolean

responses_limitany

The maximum number of responses before automatically stopping the survey.

iteration_countany

For a recurring schedule, this field specifies the number of times the survey should be shown to the user. Use 1 for 'once every X days', higher numbers for multiple repetitions. Works together with iteration_frequency_days to determine the overall survey schedule.

iteration_frequency_daysany

For a recurring schedule, this field specifies the interval in days between each survey instance shown to the user, used alongside iteration_count for precise scheduling.

enable_partial_responsesboolean

When at least one question is answered, the response is stored (true). The response is stored when all questions are answered (false).

linked_flag_idnumber | null

The feature flag to link to this survey

targeting_flag_idnumber

An existing targeting flag to use for this survey

targeting_flag_filtersobject

Target specific users based on their properties. Example: {groups: [{properties: [{key: 'email', value: ['@company.com'], operator: 'icontains'}], rollout_percentage: 50}]}

remove_targeting_flagboolean

Set to true to completely remove all targeting filters from the survey, making it visible to all users (subject to other display conditions like URL matching).

surveyIdrequiredstring

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .