---
title: "Change settings, or end / reopen voting"
method: PATCH
path: "/api/admin/{slug}"
---

# Change settings, or end / reopen voting

`PATCH /api/admin/{slug}`

## Request

- Base URL: `https://qrvote.org`
- URL: `https://qrvote.org/api/admin/{slug}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://qrvote.org/authorize`, token URL `https://qrvote.org/oauth/token`, scopes: `read`, `manage`)

## Path parameters

- `slug` string, required

## Request body

- object
  - `title` string
  - `description` string
  - `results` 'live' | 'after' | 'private'
  - `allowChange` boolean
  - `requireBallot` boolean
  - `ipLimit` integer
  - `opensAt` integer, nullable
  - `closesAt` integer, nullable
  - `categories` union[]: Contests: award categories. Names (new) or {id, name} (keeps that category's votes when renaming). A category with votes can't be removed.
    - union
      - string
      - object
        - `id` integer
        - `name` string
  - `criteria` string[]: Contests: what judges score, 1–10 each. Empty turns judging off.
  - `theme` string: classic, halloween, harvest, winter, garden, carnival, beach, sports, hearts, stars, lunar, diwali, muertos, hanami, cats, dogs, campfire, art, trivia, classroom, cookoff, science, wedding, carshow, workplace, or custom:<accent hex>-<second hex> (e.g. custom:1a73e8-ff8a5b)
  - `lang` 'en' | 'es' | 'de' | 'zh' | 'fr' | 'pt' | 'ja' | 'ko' | 'it' | 'hi' | 'id' | 'tr' | 'ar': The voters' language: the contest's QR codes and links open in it (anyone can switch). Defaults to en.
  - `closed` boolean: true ends voting now; false reopens it

## Response `200`

Updated dashboard data

## Other responses

- `401`: Wrong or missing organizer key

---

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