---
title: "Update Survey"
method: PATCH
path: "/workspaces/{workspace_id}/surveys/{survey_id}"
tags: ["surveys"]
---

# Update Survey

`PATCH /workspaces/{workspace_id}/surveys/{survey_id}`

## Path parameters

- `survey_id` string, uuid, required
- `workspace_id` string, uuid, required

## Request body

- SurveyUpdateRequest
  - `populationId` string, uuid, nullable
  - `name` string, nullable
  - `context` string, nullable
  - `demographicFilter` object, nullable
  - `sections` SurveySectionInput[], nullable
    - `title` string, required
    - `section_type` 'question_group' | 'concept_test'
    - `concept_category` 'creatives' | 'messaging' | 'scenarios' | 'websites', required
    - `concepts` SurveyConceptInput[]
      - `name` string, required
      - `body` string, nullable
      - `asset_id` string, uuid, nullable
    - `questions` union[], required
      - union
        - OpenEndedQuestionInput
          - `type` 'open_ended', required
          - `key` string, required
          - `question` string, required
          - `asset_id` string, uuid, nullable
          - `answer_config` OpenEndedConfigInput, required
            - `format` 'text' | 'number', required
            - `min` integer, nullable
            - `max` integer, nullable
            - `unit` string, nullable
        - MultipleChoiceQuestionInput
          - `type` 'multiple_choice', required
          - `key` string, required
          - `question` string, required
          - `asset_id` string, uuid, nullable
          - `answer_config` MultipleChoiceConfigInput, required
            - `allow_multiple` boolean
            - `options` ChoiceOptionInput[], required
              - …
        - ScaleQuestionInput
          - `type` 'scale', required
          - `key` string, required
          - `question` string, required
          - `asset_id` string, uuid, nullable
          - `answer_config` ScaleConfigInput, required
            - `min` integer, required
            - `max` integer, required
            - `min_label` string, nullable
            - `max_label` string, nullable
            - `scoring` 'semantic_similarity', nullable
            - `ssr` object, nullable
        - RankingQuestionInput
          - `type` 'ranking', required
          - `key` string, required
          - `question` string, required
          - `asset_id` string, uuid, nullable
          - `answer_config` RankingConfigInput, required
            - `options` RankingOptionInput[], required
              - …

## Response `200`

Successful Response

- SurveyIdResponse
  - `id` string, uuid, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/useauxos/apis/auxos.md) · [All operations](https://skmtc.dev/useauxos/apis/auxos/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/useauxos/auxos/revisions/2f853c0b59f4/schema)
