Surveys V2

Duplicate Survey

Changed on

Creates a copy of an existing survey with new IDs and a '(Copy)' suffix. Requires surveys:write scope.

post/v2/surveys/{id}/duplicate

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/surveys/{id}/duplicate
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required

Response

Success

idstring required
object'survey' required

Object type, always survey

application_idstring required
namestring required

Display name of the survey

titlestring required

Title shown to the user

messagestring required

Message shown below the title

include_other_optionboolean required

Whether to show an 'Other' free-text option

include_close_optionboolean required

Whether to show a close button that dismisses without answering

presentation_probabilitynumber required

Probability (0-1) of showing the survey to a given user

assignment_keystring required

Key used for tracking user assignments; changes when assignments are reset

created_atstring required

ISO 8601 timestamp of when the survey was created

updated_atstring required

ISO 8601 timestamp of when the survey was last updated

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from number to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    This list may be incomplete.