---
title: "Update Question Full"
method: PUT
path: "/admin/questions/{question_id}"
tags: ["admin"]
---

# Update Question Full

`PUT /admin/questions/{question_id}`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/questions/{question_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Fully update a question template (all fields required).
Requires admin privileges.

## Path parameters

- `question_id` string, uuid, required

## Request body

- QuestionTemplateCreate
  - `product_type` 'jewelry' | 'clothes', required
  - `phase` string, required
  - `question_text` string, required
  - `input_type` 'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox', required
  - `options` union[], nullable
    - union
      - string
      - QuestionOption
        - `label` string, required
        - `image_url` string, nullable
        - `description` string, nullable
  - `validation_rules` object, nullable
  - `order` integer, required
  - `depends_on_question_id` string, uuid, nullable
  - `depends_on_answer` string, nullable
  - `placeholder` string, nullable
  - `help_text` string, nullable
  - `help_display` 'link' | 'inline'
  - `i18n` object, nullable

## Response `200`

Successful Response

- QuestionTemplateSchema
  - `product_type` 'jewelry' | 'clothes', required
  - `phase` string, required
  - `question_text` string, required
  - `input_type` 'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox', required
  - `options` union[], nullable
    - union
      - string
      - QuestionOption
        - `label` string, required
        - `image_url` string, nullable
        - `description` string, nullable
  - `validation_rules` object, nullable
  - `order` integer, required
  - `depends_on_question_id` string, uuid, nullable
  - `depends_on_answer` string, nullable
  - `placeholder` string, nullable
  - `help_text` string, nullable
  - `help_display` 'link' | 'inline'
  - `id` string, uuid, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
