---
title: "POST /api/v2/admin/events/"
method: POST
path: "/api/v2/admin/events/"
tags: ["admin"]
---

# POST /api/v2/admin/events/

`POST /api/v2/admin/events/`

## 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.

## Request body

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

## Response `201`

- 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 `201`
  - added `subschema #1, subschema #2` to the `mainurl` response property `oneOf` list for the response status `201`
  - the `mainurl` response's property type changed from `string` to no type, and format from `uri` to no format for status `201`
  - …5 more

[Operation history](https://skmtc.dev/instanssi/apis/instanssi-org/changes/api/v2/admin/events/post.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)
