---
title: "PATCH /api/v2/admin/events/{id}/"
method: PATCH
path: "/api/v2/admin/events/{id}/"
tags: ["admin"]
---

# PATCH /api/v2/admin/events/{id}/

`PATCH /api/v2/admin/events/{id}/`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`

Staff viewset for managing events.

## Path parameters

- `id` integer, required

## Request body

- PatchedEventRequest: Staff serializer for events.
  - `name` string
  - `tag` string, nullable
  - `date` string, date
  - `archived` boolean
  - `hidden` boolean
  - `mainurl` union
    - string, uri
    - string

## Response `200`

- Event: Staff serializer for events.
  - `id` integer, required
  - `name` string, required
  - `tag` string, nullable
  - `date` string, date, required
  - `archived` boolean
  - `hidden` boolean
  - `mainurl` union
    - string, uri
    - string

## Changes

- **2026-07-10** `8becc3854cc7`: 4 breaking, 5 info
  - the `mainurl` request property type changed from `string` to no type, and format from `uri` to no format (media type: application/json)
  - the `mainurl` response property's maxLength was unset from `200` for the response status `200`
  - added `subschema #1, subschema #2` to the `mainurl` response property `oneOf` list for the response status `200`
  - the `mainurl` response's property type changed from `string` to no type, and format from `uri` to no format for status `200`
  - …5 more

[Operation history](https://skmtc.dev/instanssi/apis/instanssi-org/changes/api/v2/admin/events/:id/patch.md)

---

[API](https://skmtc.dev/instanssi/apis/instanssi-org.md) - [All operations](https://skmtc.dev/instanssi/apis/instanssi-org/llms.txt) - [OpenAPI document](https://skmtc.dev/instanssi/apis/instanssi-org/revisions/d45e162506aa?raw)
