---
title: "Update Question"
method: PUT
path: "/public/api/campaigns/{id}/questions/{question_id}"
tags: ["Campaigns"]
---

# Update Question

`PUT /public/api/campaigns/{id}/questions/{question_id}`

Replace a single question.

* Restricted to campaigns of type `mission`.

* If there's a conflict in the `question_number` the request takes priority. If you add a question in position 1 in page 1 and there is already a question 1 in the page 1, the new question will be placed in position 1 and the one that already existed is moved to position 2 in page 1

* The `page_number` and `question_number` are adjusted to the current state. If i.e. the `page_number` does not exist, a new subsequent number will be given regardless of the input.

## Path parameters

- `question_id` string, required

## Headers

- `Accept` string

## Request body

- object
  - `question` string
  - `question_type` string
  - `page_number` number
  - `question_number` number
  - `question_attributes` object
    - `allow_library` boolean
    - `hide_mobile` boolean
    - `mandatory` boolean

## Response `200`

OK

---

[API](https://skmtc.net/yoobic/apis/yoobic-public-api.md) · [All operations](https://skmtc.net/yoobic/apis/yoobic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yoobic/yoobic-public-api/versions/dd57df399bc4/schema)
