---
title: "Create a new event"
method: POST
path: "/events"
tags: ["Events"]
---

# Create a new event

`POST /events`

Create a new event with the given details

## Request body

- UsecaseCreateEventInputDTO
  - `capacity` integer
  - `date` string
  - `image_url` string
  - `location` string
  - `name` string
  - `organization` string
  - `partner_id` integer
  - `price` number
  - `rating` string

## Response `201`

Created

- UsecaseCreateEventOutputDTO
  - `capacity` integer
  - `date` string
  - `id` string
  - `image_url` string
  - `location` string
  - `name` string
  - `organization` string
  - `partner_id` integer
  - `price` number
  - `rating` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2024-06-10** `2ee95dd930d4` — 4 info
  - api tag `Events` added
  - api tag `events` removed
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2024-06-09** `929f78aa3151` — 4 info
  - api tag `events` added
  - api tag `Events` removed
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/devfullcycle/apis/events-api/changes/events/post.md)

---

[API](https://skmtc.dev/devfullcycle/apis/events-api.md) · [All operations](https://skmtc.dev/devfullcycle/apis/events-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devfullcycle/events-api/revisions/5869daf604b2/schema)
