Update a survey
Updates a survey in the database.
Authorizations
Use your Formbricks x-api-key to authenticate.
Path Parameters
The ID of the survey
Body
A survey input object for creating or updating surveys
The name of the survey
The type of the survey
link
, web
, website
, app
The environment ID of the survey
The questions of the survey.
Hidden fields configuration
Display options for the survey
displayOnce
, displayMultiple
, displaySome
, respondMultiple
Delay before showing survey
Single use configuration
Whether email verification is enabled
Whether single response per email is enabled
The welcome card configuration
The URL to redirect to after the survey is completed
The endings of the survey
The thank you card of the survey (deprecated)
Survey variables
Days before recontacting
Display limit for the survey
Auto close time in seconds
Auto complete time in seconds
Date to run the survey
Date to close the survey
Inline triggers configuration
Email verification configuration (deprecated)
The display percentage of the survey
Message shown when survey is closed
Survey styling configuration
Project specific overwrites
Whether to show the language switch
Response
The ID of the survey
The date and time the survey was created
"2021-01-01T00:00:00.000Z"
The date and time the survey was last updated
"2021-01-01T00:00:00.000Z"
The name of the survey
The URL to redirect to after the survey is completed
The type of the survey
link
, web
, website
, app
The status of the survey
draft
, scheduled
, inProgress
, paused
, completed
The thank you message of the survey
Whether to show the language switch
Whether to show the thank you message
The welcome card configuration
Whether to display the progress bar
The result share key of the survey
The pin of the survey
The user who created the survey
The environment ID of the survey
The endings of the survey
The thank you card of the survey (deprecated)
Hidden fields configuration
Survey variables
Display options for the survey
displayOnce
, displayMultiple
, displaySome
, respondMultiple
Days before recontacting
Display limit for the survey
Auto close time in seconds
Auto complete time in seconds
Delay before showing survey
Date to run the survey
Date to close the survey
Message shown when survey is closed
ID of the segment
Project specific overwrites
Survey styling configuration
Single use configuration
Whether email verification is enabled
Whether single response per email is enabled
Inline triggers configuration
Whether the back button is hidden
Email verification configuration (deprecated)
The display percentage of the survey
The questions of the survey.
Was this page helpful?