> ## Documentation Index
> Fetch the complete documentation index at: https://www.pickfu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update survey

> Updates a draft survey. All fields use replace-all semantics — for example, sending `tags` replaces all existing tags, and sending `questions` replaces all existing questions.

Only surveys in `unpublished` (draft) status can be updated. You can update the name, tags, project, questions, targeting, reporting, country, sample size, and survey intent.



## OpenAPI

````yaml /docs/api-reference/openapi.json patch /surveys/{id}
openapi: 3.1.0
info:
  title: PickFu API
  version: 1.0.0
  description: >-
    The PickFu API enables programmatic access to create surveys, retrieve
    results, and integrate PickFu into your workflows.


    ## Overview


    PickFu helps you get instant consumer feedback through surveys. With the
    API, you can:


    - Create surveys programmatically

    - Retrieve survey results and respondent data

    - Target specific audiences with demographic traits

    - Integrate PickFu into your product development workflow


    ## Rate Limits


    Selected endpoints (currently the CSV export endpoints) enforce per-caller
    rate limits and return `429 Too Many Requests` when exceeded. See each
    endpoint description for its specific budget.


    ## Authentication


    All API requests require a Bearer token — either an API key or an OAuth 2.0
    access token. See the [Authentication
    guide](https://www.pickfu.com/docs/developers/authentication) for details.
  contact:
    name: PickFu Support
    email: support@pickfu.com
    url: https://www.pickfu.com
servers:
  - url: https://api.pickfu.com/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Surveys
    description: >-
      Create, retrieve, update, and publish surveys. Surveys are the core
      resource — each contains one or more questions with answer options.
  - name: Responses
    description: >-
      Retrieve individual responses (answers) for a survey, with pagination and
      per-question filtering.
  - name: Tags
    description: Organize surveys with tags. Tags are scoped to your team/account.
  - name: Projects
    description: >-
      Organize surveys into projects. Projects group related surveys and can be
      bookmarked or archived.
  - name: Traits
    description: >-
      Audience targeting and reporting traits used to reach specific
      demographics and segment survey results.
  - name: Playbooks
    description: >-
      Discover and retrieve step-by-step research playbooks. Each playbook is a
      structured sequence of polls designed for a specific research goal.
  - name: Help
    description: Search the PickFu help center for articles and guides.
  - name: Media
    description: >-
      Generate images from text prompts and upload media files to the PickFu
      CDN.
  - name: Semantic Search
    description: >-
      Search completed surveys in your enrolled team account by meaning and
      answer evidence.
paths:
  /surveys/{id}:
    patch:
      tags:
        - Surveys
      summary: Update survey
      description: >-
        Updates a draft survey. All fields use replace-all semantics — for
        example, sending `tags` replaces all existing tags, and sending
        `questions` replaces all existing questions.


        Only surveys in `unpublished` (draft) status can be updated. You can
        update the name, tags, project, questions, targeting, reporting,
        country, sample size, and survey intent.
      operationId: updateSurvey
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Survey GUID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                randomizeOptions:
                  enum:
                    - true
                    - false
                  description: >-
                    Randomize respondent option order (default true). False uses
                    builder label order. SERP stays fixed; question order and
                    rating scales are unchanged. Omit on update to keep the
                    saved value. Drafts only.
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: Survey name (1-255 characters, trimmed)
                tags:
                  type: array
                  maxItems: 10
                  description: >-
                    Tags to replace all existing tags. Each item has either id
                    or name.
                  items:
                    type: object
                    oneOf:
                      - required:
                          - id
                        properties:
                          id:
                            type:
                              - string
                              - number
                            description: >-
                              Existing tag ID — opaque identifier (tag_<32-hex>)
                              or legacy integer
                        additionalProperties: false
                      - required:
                          - name
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 100
                            description: Tag name (will find or create)
                        additionalProperties: false
                projectId:
                  type:
                    - string
                    - number
                    - 'null'
                  description: >-
                    Project GUID (string) or numeric ID to associate, or null to
                    remove project. Mutually exclusive with `projects`.
                projects:
                  type: array
                  maxItems: 50
                  description: >-
                    Project GUIDs (or numeric IDs) to associate the survey with.
                    Replace-all semantics. Mutually exclusive with `projectId`.
                  items:
                    type:
                      - string
                      - number
                questions:
                  type: array
                  minItems: 1
                  maxItems: 24
                  description: >-
                    Questions to replace all existing questions (replace-all
                    semantics)
                  items:
                    type: object
                    required:
                      - type
                      - prompt
                    properties:
                      id:
                        type: string
                        description: >-
                          Question GUID from GET response. Include to update
                          in-place (preserving response data). Omit to create as
                          new.
                      type:
                        type: string
                        enum:
                          - head_to_head
                          - ranked
                          - open_ended
                          - click_test
                          - emoji_rating
                          - star_rating
                          - five_second_test
                          - screen_recording
                          - single_select
                          - multi_select
                          - likert
                          - van_westendorp
                        description: >-
                          Question type. Every type except screen_recording
                          collects a written explanation from each respondent
                          unless `explanationRequired` is false, returned as the
                          response's `explanation` field. Do NOT add a separate
                          open_ended question to capture 'why' — it duplicates
                          the built-in explanation and wastes a question slot
                          (multi-question surveys are priced per question). The
                          exception is a multi-question survey that turns
                          explanations off: at least one question every
                          respondent sees must still collect written feedback
                          (an open_ended question, or one that keeps its
                          explanation), or publishing fails.
                      prompt:
                        type: string
                        description: >-
                          Question text prompt (max 255 chars). Unless
                          `explanationRequired` is false, every response
                          includes a written explanation from the respondent for
                          all types except screen_recording — phrase the real
                          question here and PickFu collects the 'why'
                          automatically.
                        maxLength: 255
                      explanationRequired:
                        type: boolean
                        description: >-
                          Whether respondents write an explanation after
                          answering. Set false for a rating-only or choice-only
                          question. Cannot be false on open_ended,
                          five_second_test or screen_recording questions. On
                          PATCH, omitting this field keeps the question's
                          current setting.
                      variant:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Persisted question variant. For likert questions,
                          accepts canonical variant slugs returned by GET.
                      likertScale:
                        type: string
                        enum:
                          - agreement5
                          - agreement7
                          - frequency
                          - satisfaction
                        description: >-
                          Likert scale preset. Only honored when type=likert. On
                          PATCH, omitting this field leaves the existing scale
                          unchanged.
                      context:
                        type: object
                        description: >-
                          Context provided with the question: text, a mediaUrl,
                          or both (text is then the caption shown with the
                          image, and mediaUrl must be an image URL). Also
                          accepts the {type, value, text?} format from GET
                          responses.
                        properties:
                          text:
                            type: string
                          mediaUrl:
                            type: string
                          type:
                            type: string
                          value:
                            type: string
                      options:
                        type: array
                        description: Options for the question
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            id:
                              type: string
                              description: >-
                                Option GUID from GET response. Include to update
                                in-place. Omit to create as new.
                            value:
                              type: string
                              maxLength: 5000
                            mediaUrl:
                              type: string
                            asin:
                              type: string
                              pattern: ^[A-Z0-9]{10}$
                              maxLength: 10
                            imageSet:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: object
                                    required:
                                      - source
                                      - id
                                    additionalProperties: false
                                    properties:
                                      source:
                                        type: string
                                        enum:
                                          - amazon
                                          - walmart
                                          - google_play
                                          - apple
                                      id:
                                        type: string
                                        minLength: 1
                              minItems: 1
                            imageSetDirection:
                              type: string
                              enum:
                                - vertical
                                - horizontal
                                - a-plus
                            mockup:
                              type:
                                - object
                                - 'null'
                              description: >-
                                Either an Amazon product mockup (`type`,
                                `image`, `title`, `price`, …) or a first-party
                                mockup template (`template` with `values`,
                                `import` or both), never both. A template keeps
                                the option a text option: send `value` as well,
                                which is the option's text and fills the
                                template's display field. Every option of a
                                question names the same template, or none does.
                                List the templates and the values each takes
                                with GET /v1/mockup-templates. On update,
                                leaving `mockup` out keeps the option's page,
                                and `null` removes the question's mockup
                                template from every option.
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - serp
                                    - listing
                                image:
                                  type: string
                                title:
                                  type: string
                                numRatings:
                                  type: number
                                reviewScore:
                                  type: number
                                rating:
                                  type: number
                                reviews:
                                  type: number
                                price:
                                  type: number
                                currency:
                                  type: string
                                template:
                                  type: string
                                  minLength: 1
                                  description: >-
                                    Lookup key of a mockup template from GET
                                    /v1/mockup-templates, such as
                                    `app-store-page`.
                                values:
                                  type: object
                                  description: >-
                                    The template's field values, keyed by field
                                    name, as its `valuesSchema` describes. Leave
                                    out the display field: it is the option's
                                    `value`.
                                import:
                                  type: object
                                  description: >-
                                    A store listing that fills the template's
                                    values before the survey is saved, for
                                    templates whose `importSources` list the
                                    store. `values` sent beside it win, so send
                                    the fields a store does not provide, such as
                                    an App Store subtitle or an Amazon result's
                                    `sponsored` and `badge`, there. The option's
                                    `value` stays its text. Images are copied to
                                    PickFu's media CDN as when sent in `values`.
                                    An import from `amazon` needs an API key
                                    with the `spend` permission.
                                  required:
                                    - source
                                    - id
                                  additionalProperties: false
                                  properties:
                                    source:
                                      type: string
                                      enum:
                                        - apple
                                        - amazon
                                    id:
                                      type: string
                                      minLength: 1
                                      maxLength: 500
                                      description: >-
                                        The listing. For `apple`: an App Store
                                        link such as
                                        https://apps.apple.com/us/app/name/id123456789,
                                        or the number after "id". For `amazon`:
                                        an Amazon product link such as
                                        https://www.amazon.com/dp/B08BFFG82B, or
                                        its 10-character ASIN.
                                    country:
                                      type: string
                                      pattern: ^[A-Za-z]{2}$
                                      description: >-
                                        Two-letter storefront or Amazon
                                        marketplace to read the listing from
                                        when the link names none. Defaults to
                                        the survey's country where the store
                                        serves it, else the US.
                targeting:
                  type: array
                  items:
                    type: string
                  description: Targeting trait permalinks (replace-all semantics)
                reporting:
                  type: array
                  items:
                    type: string
                  description: Reporting trait permalinks (replace-all semantics)
                country:
                  type: string
                  description: Two-letter country code (e.g. US)
                sampleSize:
                  type: string
                  description: >-
                    Number of respondents. Standard surveys: "15", "30", "50",
                    "75", "100", "200", "300", "500". Screen recording surveys:
                    "5", "10", "15", "20", "25", "30", "50", "75" (max 75).
                surveyIntent:
                  type: string
                  description: >-
                    Original intent of the survey as interpreted by AI (max 255
                    characters)
                  maxLength: 255
                externalId:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: >-
                    Optional opaque correlation key for your own records. Omit
                    when unset. Case-sensitive and byte-exact — send the
                    identical string every time. Many surveys may share the same
                    id. We do not interpret this value.
                template:
                  type: object
                  description: >-
                    Create only: sending it here is a 400. Edit a draft made
                    from a template with `questions`, using the ids from GET
                    /v1/surveys/{id}; its edits must stay within the template
                    limits shown in `template.constraints`.
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    description: >-
                      Full survey data including questions, options, and
                      metadata
                    properties:
                      id:
                        type: string
                        description: Unique survey GUID
                      name:
                        type:
                          - string
                          - 'null'
                        description: Survey name/title
                      country:
                        type: string
                        description: Two-letter country code (e.g. US, GB)
                      currency:
                        type: string
                        description: >-
                          ISO 4217 currency derived from the survey target
                          country
                      randomizeOptions:
                        type: boolean
                      sampleSize:
                        type: number
                        description: Number of respondents requested
                      numResponses:
                        type:
                          - number
                          - 'null'
                        description: Number of responses collected so far
                      status:
                        type: string
                        description: >-
                          Survey status: unpublished, in-progress, completed, or
                          archived (deleted is also possible here for
                          soft-deleted surveys, which the list endpoint
                          excludes). Same vocabulary as the list endpoint — a
                          survey always has the identical status string on both.
                      targeting:
                        type: array
                        items:
                          type: string
                        description: >-
                          Array of targeting trait permalinks applied to this
                          survey
                      reporting:
                        type: array
                        items:
                          type: string
                        description: >-
                          Array of reporting trait permalinks for demographic
                          breakdowns
                      reportingDefaultsApplied:
                        type: array
                        items:
                          type: string
                        description: >-
                          Reporting trait permalinks that were auto-injected as
                          free defaults (based on plan level and country), not
                          explicitly requested by the caller
                      tags:
                        type: array
                        description: Tags associated with the survey
                        items:
                          type: object
                          required:
                            - id
                            - name
                          properties:
                            id:
                              type: string
                              description: Opaque tag identifier (tag_<32-hex>)
                            name:
                              type: string
                              description: Tag name
                      projects:
                        type: array
                        description: Projects the survey belongs to
                        items:
                          type: object
                          required:
                            - id
                            - name
                          properties:
                            id:
                              type: string
                              description: Project GUID
                            name:
                              type: string
                              description: Project name
                      surveyUrl:
                        type: string
                        description: Public URL to view the survey results
                      surveyIntent:
                        type: string
                        description: AI-interpreted intent of the survey
                      externalId:
                        type: string
                        description: >-
                          Optional opaque correlation key for your own records.
                          Omitted when unset. Case-sensitive and byte-exact.
                          Many surveys may share the same id. We do not
                          interpret this value.
                      template:
                        type:
                          - object
                          - 'null'
                        description: >-
                          The template the survey was made from and the limits
                          it must meet to publish, or null. Edits that break a
                          limit are rejected.
                        properties:
                          id:
                            type:
                              - string
                              - 'null'
                            description: >-
                              Template id (cmb_...), or null when the template
                              can no longer be addressed
                          name:
                            type: string
                          constraints:
                            type: object
                            additionalProperties: false
                            required:
                              - questionTypes
                              - optionTypes
                              - optionCount
                              - sampleSizes
                              - defaultSampleSize
                              - countries
                              - defaultCountry
                            properties:
                              questionTypes:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - head_to_head
                                    - ranked
                                    - open_ended
                                    - star_rating
                                    - click_test
                              optionTypes:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - text
                                    - image
                                    - video
                                    - url
                                    - product
                                    - image-set
                                    - audio
                              optionCount:
                                type: object
                                additionalProperties: false
                                required:
                                  - min
                                  - max
                                properties:
                                  min:
                                    type: integer
                                  max:
                                    type: integer
                              sampleSizes:
                                type: array
                                items:
                                  type: string
                              defaultSampleSize:
                                type: string
                              countries:
                                type: array
                                items:
                                  type: string
                              defaultCountry:
                                type: string
                      questions:
                        type: array
                        description: >-
                          Questions in the survey with options, responses, and
                          AI metadata
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Question ID (GUID)
                            heatmapUrl:
                              type: string
                              format: uri
                              description: >-
                                Generated heatmap for a completed click-test
                                question
                            type:
                              type: string
                              description: >-
                                Question type (head_to_head, ranked, open_ended,
                                click_test, emoji_rating, star_rating,
                                five_second_test, screen_recording,
                                single_select, multi_select, likert,
                                van_westendorp)
                            variant:
                              type:
                                - string
                                - 'null'
                              description: Question variant for specialized display modes
                            value:
                              type: string
                              description: Question text
                            translation:
                              type:
                                - string
                                - 'null'
                              description: Translated question text
                            likertScale:
                              type:
                                - string
                                - 'null'
                              enum:
                                - agreement5
                                - agreement7
                                - frequency
                                - satisfaction
                                - null
                              description: >-
                                Likert scale preset, returned for likert
                                questions whose variant matches one of the
                                canonical presets. Null for non-likert questions
                                or legacy likert questions with no recognized
                                variant.
                            explanationRequired:
                              type: boolean
                              description: >-
                                Whether respondents write an explanation after
                                answering. False only when it was turned off;
                                always true on open_ended, five_second_test and
                                screen_recording questions.
                            options:
                              type:
                                - array
                                - 'null'
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Option GUID for round-trip updates
                                  label:
                                    type: string
                                    description: Option identifier label (e.g. "Option A")
                                  value:
                                    oneOf:
                                      - type: string
                                      - type: array
                                        items:
                                          type: string
                                    description: >-
                                      Option content: text string, Cloudinary
                                      URL, or array of URLs (image-set)
                                  type:
                                    type: string
                                    description: >-
                                      Option data type: text, image, video,
                                      product, or image-set
                                  translation:
                                    type:
                                      - string
                                      - 'null'
                                    description: Translated option text
                                  product:
                                    type:
                                      - object
                                      - 'null'
                                    description: >-
                                      Product data for product-type options
                                      (ASIN or custom mockups)
                                    properties:
                                      asin:
                                        type:
                                          - string
                                          - 'null'
                                        description: Amazon ASIN (null for custom mockups)
                                      title:
                                        type: string
                                        description: Product title
                                      price:
                                        type: number
                                        description: Product price
                                      salePrice:
                                        type:
                                          - number
                                          - 'null'
                                        description: >-
                                          Discounted/sale price. null when the
                                          product is not on sale.
                                      currency:
                                        type:
                                          - string
                                          - 'null'
                                        description: Currency code for the price
                                      rating:
                                        type: number
                                        description: Star rating (0-5)
                                      reviews:
                                        type: number
                                        description: Number of reviews
                                      reviewScore:
                                        type:
                                          - number
                                          - 'null'
                                        description: >-
                                          Alias of rating for public API
                                          round-trip
                                      numRatings:
                                        type:
                                          - number
                                          - 'null'
                                        description: >-
                                          Alias of reviews for public API
                                          round-trip
                                      image:
                                        type: string
                                        description: Product image URL
                                  imageSetDirection:
                                    type: string
                                    description: >-
                                      Image stack layout direction: horizontal
                                      or vertical (image-set options only)
                                  mockupType:
                                    type: string
                                    description: >-
                                      Product mockup rendering style: serp or
                                      listing (product options only)
                                  mockup:
                                    type: object
                                    description: >-
                                      The mockup template a text option shows:
                                      `template` is its lookup key and `values`
                                      its stored field values, images at their
                                      PickFu media CDN copies. `values` leaves
                                      out the display field, which is the
                                      option's `value`. On update, leaving
                                      `mockup` out or sending it back unchanged
                                      keeps the page, and `mockup: null` removes
                                      the question's template.
                                    properties:
                                      template:
                                        type: string
                                      values:
                                        type: object
                                        additionalProperties: true
                              description: Answer options for this question
                            context:
                              type:
                                - object
                                - 'null'
                              description: >-
                                Additional context provided with the question
                                (e.g. a product description or image)
                              properties:
                                type:
                                  type: string
                                  description: Context type (text or media)
                                value:
                                  type: string
                                  description: >-
                                    Context content: the text, or for media the
                                    hosted media URL
                                text:
                                  type: string
                                  description: >-
                                    Caption shown with the image. Present only
                                    on a media context that has one; send it
                                    back with the media URL to keep both.
                                translation:
                                  type:
                                    - string
                                    - 'null'
                                  description: Translated context text
                            results:
                              type:
                                - object
                                - 'null'
                              description: >-
                                Aggregated, page-faithful summary of the outcome
                                for this question — the same percentages and
                                ranking shown on the results page. Null for
                                question types without a simple per-option
                                aggregate (open_ended, click_test, likert,
                                five_second_test, screen_recording, round_robin)
                                or before any responses arrive. For ranked
                                questions, `votes` is the final instant-runoff
                                tally the percentage is computed from, and
                                differs from the first-choice count shown beside
                                each option on the page; the winner exceeds 50%.
                              properties:
                                totalResponses:
                                  type: number
                                  description: >-
                                    Number of valid responses the percentages
                                    are computed against
                                winningOptionId:
                                  type:
                                    - string
                                    - 'null'
                                  description: >-
                                    GUID of the winning option, or null on a tie
                                    / before a winner is decided
                                averageScore:
                                  type: number
                                  description: >-
                                    Average rating, returned for rating
                                    questions only (emoji_rating, star_rating)
                                options:
                                  type: array
                                  description: >-
                                    Per-option results, ordered by rank (winner
                                    first)
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        description: Option GUID
                                      label:
                                        type:
                                          - string
                                          - 'null'
                                        description: Option label (e.g. "A")
                                      votes:
                                        type: number
                                        description: >-
                                          Vote count; the final instant-runoff
                                          tally for ranked questions
                                      percentage:
                                        type: number
                                        description: >-
                                          round(votes / totalResponses * 100),
                                          matching the results page
                                      rank:
                                        type:
                                          - number
                                          - 'null'
                                        description: Final placement (1 = winner)
                                      isWinner:
                                        type: boolean
                                        description: Whether this option is the winner
                            responses:
                              type: array
                              description: Respondent answers for this question
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Response ID
                                  pinned:
                                    type: boolean
                                    description: Whether the response is pinned
                                  explanation:
                                    type:
                                      - string
                                      - 'null'
                                    description: Written explanation from the respondent
                                  translation:
                                    type:
                                      - string
                                      - 'null'
                                    description: Translated explanation text
                                  chosenOption:
                                    type:
                                      - string
                                      - 'null'
                                    description: >-
                                      Label of the option chosen by the
                                      respondent
                                  selectedOptions:
                                    type:
                                      - array
                                      - 'null'
                                    description: >-
                                      Labels of options selected by the
                                      respondent for multi-select questions
                                    items:
                                      type: string
                                  score:
                                    type:
                                      - number
                                      - 'null'
                                    description: >-
                                      Rating score (for emoji_rating,
                                      star_rating question types)
                                  clicks:
                                    type:
                                      - array
                                      - 'null'
                                    description: Click coordinates for click_test questions
                                    items:
                                      type: object
                                      properties:
                                        number:
                                          type: number
                                          description: Click sequence number
                                        xCoord:
                                          type: number
                                          description: X coordinate of the click
                                        yCoord:
                                          type: number
                                          description: Y coordinate of the click
                                  ranking:
                                    type:
                                      - array
                                      - 'null'
                                    description: >-
                                      Respondent's ranking of options for ranked
                                      question types. Each entry pairs a rank (1
                                      = top pick) with the option label.
                                    items:
                                      type: object
                                      properties:
                                        rank:
                                          type: number
                                          description: >-
                                            Rank position (1 = respondent's top
                                            pick)
                                        option:
                                          type:
                                            - string
                                            - 'null'
                                          description: Option label at this rank
                                  media:
                                    type:
                                      - string
                                      - 'null'
                                    description: >-
                                      Media URL (for screen_recording question
                                      types)
                                  mediaTranscription:
                                    type:
                                      - string
                                      - 'null'
                                    description: Transcription of the recorded media
                                  matchup:
                                    type:
                                      - object
                                      - 'null'
                                    description: >-
                                      Head-to-head matchup pairing shown to the
                                      respondent
                                    properties:
                                      option1:
                                        type: string
                                        description: First option in the matchup
                                      option2:
                                        type: string
                                        description: Second option in the matchup
                                  statements:
                                    type:
                                      - array
                                      - 'null'
                                    description: >-
                                      Per-statement responses for likert
                                      question types. Each entry pairs a
                                      statement with the numeric value the
                                      respondent picked on the configured scale.
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          description: >-
                                            GUID of the statement (the question
                                            option)
                                        statement:
                                          type:
                                            - string
                                            - 'null'
                                          description: Statement text
                                        value:
                                          type: number
                                          description: >-
                                            Numeric value the respondent picked on
                                            the Likert scale (1..N for the
                                            configured scale)
                                  prices:
                                    type:
                                      - object
                                      - 'null'
                                    description: >-
                                      Van Westendorp price-sensitivity
                                      responses. Four numeric prices the
                                      respondent provided for the four
                                      standardized PSM questions.
                                    properties:
                                      tooCheap:
                                        type: number
                                        description: >-
                                          Price at which the product would be so
                                          cheap that quality is questionable
                                      bargain:
                                        type: number
                                        description: >-
                                          Price at which the product would be a
                                          bargain
                                      expensive:
                                        type: number
                                        description: >-
                                          Price at which the product starts to
                                          feel expensive but is still worth
                                          considering
                                      tooExpensive:
                                        type: number
                                        description: >-
                                          Price at which the product would be too
                                          expensive to consider
                                  respondent:
                                    type: array
                                    description: Demographic traits of the respondent
                                    items:
                                      type: object
                                      properties:
                                        trait:
                                          type: string
                                          description: Trait category name
                                        value:
                                          type: string
                                          description: Trait value
                            ai:
                              type: object
                              description: >-
                                AI-generated metadata such as summaries and key
                                themes for this question
                              additionalProperties:
                                type: string
                  cost:
                    type: object
                    description: Cost information for the survey
                    properties:
                      amount:
                        type: number
                        description: Survey cost in dollars
                      balance:
                        type: number
                        description: Credit balance in dollars
                      currency:
                        type: string
                        description: Currency code (USD)
                      canPayWithBalance:
                        type: boolean
                        description: Whether balance covers the cost
                      quotedCreditsCost:
                        type: number
                        description: >-
                          Post-discount cost in credits, after free credits
                          applied (1 credit = $1 USD)
                      creditsCostSubtotal:
                        type: number
                        description: Pre-discount cost in credits (1 credit = $1 USD)
                      discounts:
                        type: array
                        description: >-
                          Credit-side discount line items, each entry is [label,
                          amountInCredits]. Amounts are denominated in credits
                          so they subtract directly from creditsCostSubtotal
                        items:
                          type: array
                          items:
                            type: string
                      discountsMoney:
                        type: array
                        description: >-
                          Dollar-side discount line items, each entry is [label,
                          formattedDollarAmount] (e.g. "$20.08")
                        items:
                          type: array
                          items:
                            type: string
                      planRequired:
                        type:
                          - 'null'
                          - string
                        description: >-
                          Plan tier required for current survey configuration,
                          or null if the current plan is sufficient
                      priceLines:
                        type: array
                        description: >-
                          The survey builder's price summary, each entry is
                          [label, formattedDollarAmount] (e.g. ["Head-to-Head:
                          Text Length (+1.2x)", "$10.00"]). Each amount is that
                          line's cost for the whole sample: base price, extra
                          options, text or video length, targeting and
                          reporting. A $0.00 line is included free. The lines
                          come before discounts: they add up to
                          `creditsCostSubtotal` in dollars, and `discountsMoney`
                          takes that down to `amount`
                        items:
                          type: array
                          items:
                            type: string
                  completionEstimate:
                    type: object
                    description: Estimated completion-time bucket for the current audience
                    properties:
                      bucket:
                        type: string
                        description: >-
                          Completion-time bucket: SUPER_EASY (<2h), EASY (1-2
                          days), MEDIUM (up to 2 weeks), HARD (may take longer),
                          MAY_NOT_COMPLETE
                      estimatedMinutes:
                        type:
                          - 'null'
                          - number
                        description: >-
                          Estimated completion time in minutes, or null when
                          unavailable
                      status:
                        type: string
                        description: ready when an estimate exists, pending while computing
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                  error:
                    type: string
                  code:
                    type: string
                  param:
                    type: string
                  message:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: string
        '402':
          description: >-
            The team's platform credit balance cannot cover this action (only
            when platform credits are enforced)
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The team's platform credit balance cannot cover this action
                  (only when platform credits are enforced)
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                      - insufficient_platform_credits
                  message:
                    type: string
                  required:
                    type: integer
                    description: Platform credits the action costs
                  available:
                    type: integer
                    description: Platform credits in the team's balance
                  shortfall:
                    type: integer
                    description: required minus available
                  param:
                    type: string
                    description: The first import that costs credits.
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - type: string
                  - type: object
                    description: >-
                      A request a template cannot satisfy: the first problem as
                      `code` and `param`, and every problem in `violations`. A
                      product combo template lists each limit with its allowed
                      and received values; a mockup template lists each option
                      field to change, as a path such as
                      `questions[0].options[1].mockup.values.icon`.
                    properties:
                      statusCode:
                        type: number
                      error:
                        type: string
                      code:
                        type: string
                      param:
                        type: string
                        description: The request field to change.
                      message:
                        type: string
                      violations:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                            param:
                              type: string
                            message:
                              type: string
                            allowed: {}
                            received: {}
                      blanks:
                        type: array
                        description: Blanks still to fill, for TEMPLATE_BLANKS_UNFILLED.
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            placeholder:
                              type:
                                - 'null'
                                - string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
        '422':
          description: >-
            A request a template cannot satisfy: the first problem as `code` and
            `param`, and every problem in `violations`. A product combo template
            lists each limit with its allowed and received values; a mockup
            template lists each option field to change, as a path such as
            `questions[0].options[1].mockup.values.icon`.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  A request a template cannot satisfy: the first problem as
                  `code` and `param`, and every problem in `violations`. A
                  product combo template lists each limit with its allowed and
                  received values; a mockup template lists each option field to
                  change, as a path such as
                  `questions[0].options[1].mockup.values.icon`.
                properties:
                  statusCode:
                    type: number
                  error:
                    type: string
                  code:
                    type: string
                  param:
                    type: string
                    description: The request field to change.
                  message:
                    type: string
                  violations:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        param:
                          type: string
                        message:
                          type: string
                        allowed: {}
                        received: {}
                  blanks:
                    type: array
                    description: Blanks still to fill, for TEMPLATE_BLANKS_UNFILLED.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        placeholder:
                          type:
                            - 'null'
                            - string
        '428':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
        '429':
          description: >-
            A request a template cannot satisfy: the first problem as `code` and
            `param`, and every problem in `violations`. A product combo template
            lists each limit with its allowed and received values; a mockup
            template lists each option field to change, as a path such as
            `questions[0].options[1].mockup.values.icon`.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  A request a template cannot satisfy: the first problem as
                  `code` and `param`, and every problem in `violations`. A
                  product combo template lists each limit with its allowed and
                  received values; a mockup template lists each option field to
                  change, as a path such as
                  `questions[0].options[1].mockup.values.icon`.
                properties:
                  statusCode:
                    type: number
                  error:
                    type: string
                  code:
                    type: string
                  param:
                    type: string
                    description: The request field to change.
                  message:
                    type: string
                  violations:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        param:
                          type: string
                        message:
                          type: string
                        allowed: {}
                        received: {}
                  blanks:
                    type: array
                    description: Blanks still to fill, for TEMPLATE_BLANKS_UNFILLED.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        placeholder:
                          type:
                            - 'null'
                            - string
        '503':
          description: >-
            A request a template cannot satisfy: the first problem as `code` and
            `param`, and every problem in `violations`. A product combo template
            lists each limit with its allowed and received values; a mockup
            template lists each option field to change, as a path such as
            `questions[0].options[1].mockup.values.icon`.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  A request a template cannot satisfy: the first problem as
                  `code` and `param`, and every problem in `violations`. A
                  product combo template lists each limit with its allowed and
                  received values; a mockup template lists each option field to
                  change, as a path such as
                  `questions[0].options[1].mockup.values.icon`.
                properties:
                  statusCode:
                    type: number
                  error:
                    type: string
                  code:
                    type: string
                  param:
                    type: string
                    description: The request field to change.
                  message:
                    type: string
                  violations:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        param:
                          type: string
                        message:
                          type: string
                        allowed: {}
                        received: {}
                  blanks:
                    type: array
                    description: Blanks still to fill, for TEMPLATE_BLANKS_UNFILLED.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        placeholder:
                          type:
                            - 'null'
                            - string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        OAuth2 access token obtained via the authorization flow. Include in the
        Authorization header as: `Bearer {access_token}`

````

## Related topics

- [PickFu CLI for surveys and automation](https://www.pickfu.com/docs/integrations/cli.md)
- [Update project](https://www.pickfu.com/docs/api-reference/projects/update-project.md)
- [Product updates](https://www.pickfu.com/help/product-updates.md)
- [International surveys and translation](https://www.pickfu.com/docs/guides/international-surveys.md)
- [How long will my survey take?](https://www.pickfu.com/help/how-long-will-my-poll-take.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.