---
title: "Close or reopen"
method: PATCH
path: "/quizzes/{id}"
tags: ["Quizzes"]
---

# Close or reopen

`PATCH /quizzes/{id}`

## Request

- Base URL: `https://quizgen.dev/api/v1`
- URL: `https://quizgen.dev/api/v1/quizzes/{id}`
- Auth: HTTP bearer

Closes or reopens the quiz.

## Request body

- object
  - `status` 'live' | 'closed', required

## Response `200`

Status updated.

- OperationResult: Successful mutation result. Fields vary by operation and are documented on the endpoint.

## Other responses

- `401`: Missing or invalid API key.
- `404`: No such quiz (or not yours).

---

[API](https://skmtc.dev/quizgen/apis/quizgen-api.md) · [All operations](https://skmtc.dev/quizgen/apis/quizgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quizgen/apis/quizgen-api/revisions/100cf9a83300?raw)
