---
title: "Update question"
method: PATCH
path: "/draft_trips/{trip_uuid}/surveys/{id}"
tags: ["Participant Information"]
---

# Update question

`PATCH /draft_trips/{trip_uuid}/surveys/{id}`

Update Survey

## Path parameters

- `trip_uuid` string, required
- `id` string, required

## Request body

- object
  - `data` UpdateSurvey — Update Participant Question
    - `question` string — Text of the question
    - `question_type` 'text' | 'checkbox' | 'radio' | 'file' | 'date' | 'phone' | 'country' | 'dropdown' — The question type is either “text”, “checkbox”, “radio”, "dropdown", "phone", "country", “date” and “file”. Text prompts a text response from the participant. Checkbox allows the participant to select among several options. “Radio” prompts the participant to choose one option. “Date” prompts the participant to enter a date. “File” prompts the participant to upload a file. “Dropdown” prompts the participant to select one option from a list of choices presented in a collapsible menu. “Phone” prompts the participant to enter a valid phone number. “Country” prompts the participant to select a country from a standardized list, provided as a dropdown menu.
    - `required` boolean — Is this a required question or not
    - `answer_options` string[] — Answer options for “checkbox” and “radio” questions. E.g. The question “What’s your T-Shirt size?” can be answered as ['Medium', 'Large']
    - `other_option` boolean — Whether there is a “Other” answer option for “checkbox” and “radio” questions.

## Response `200`

Successfully updated

- object
  - `data` Survey — Survey object
    - `question_id` integer — Unique ID of the question
    - `question` string — The text of the question
    - `type` 'checkbox' | 'radio' | 'date' | 'text' | 'file' — The type of the question
    - `answers` unknown[] — The answer of the question
      - unknown
    - `files` unknown[], nullable — Requested files for upload
      - unknown

---

[API](https://skmtc.dev/wetravel/apis/authentication-api.md) · [All operations](https://skmtc.dev/wetravel/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wetravel/authentication-api/revisions/5c747875f084/schema)
