---
title: "Update quiz"
method: PUT
path: "/quizzes/{quizId}"
---

# Update quiz

`PUT /quizzes/{quizId}`

## Path parameters

- `quizId` integer, required

## Headers

- `api_key` string, required

## Request body

- object
  - `paywall_id` integer, nullable — Optional ID of the paywall that follows this quiz. Pass `0` (or omit) to fall back to the project's default `/paywall`.
  - `name` string, nullable
  - `slug` string, nullable
  - `theme` string, nullable
  - `language` string, nullable
  - `country` string, nullable — ISO 3166-1 alpha-2 country code
  - `tags` string[]
  - `custom_head_html` string, nullable
  - `custom_css` string, nullable
  - `custom_js` object
    - `on_before_submit` string, nullable
    - `custom_json` string, nullable
  - `analytics` object
    - `meta_pixel_id` string, nullable
    - `facebook_access_token` string, nullable
    - `tiktok_pixel_id` string, nullable
    - `tiktok_access_token` string, nullable
  - `source_quiz` integer, nullable
  - `auto_languages` integer, nullable
  - `templates_version` 1 | 2, nullable — Quiz templates version. New quizzes default to `2` when created via API.
  - `published_version` integer, nullable
  - `css_variables` object, nullable
  - `no_cookie` boolean, nullable
  - `screens` string, json, nullable — JSON string with quiz screens content

## Response `200`

Quiz updated

- object
  - `success` integer
  - `quiz` Quiz
    - `id` integer
    - `project_id` integer
    - `paywall_id` integer
    - `name` string
    - `slug` string
    - `theme` string, nullable
    - `tags` string[]
    - `custom_js` object
      - `on_before_submit` string, nullable
      - `custom_json` string, nullable
    - `custom_css` string, nullable
    - `custom_head_html` string, nullable
    - `analytics` object
      - `meta_pixel_id` string, nullable
      - `facebook_access_token` string, nullable
      - `tiktok_pixel_id` string, nullable
      - `tiktok_access_token` string, nullable
    - `language` string, nullable
    - `country` string, nullable
    - `published_version` integer, nullable
    - `auto_languages` integer
    - `templates_version` integer, nullable
    - `no_cookie` boolean
    - `css_variables` object
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `deleted_at` string, date-time, nullable

---

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