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

# Add a new event

`POST /events`

## Request

- Base URL: `https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1`
- URL: `https://virtserver.swaggerhub.com/LBHC/lbh-co_l_directory_of_services_gateway_api/1.0.1/events`
- Auth: none declared

Add a new event

## Request body

- AddEvent
  - `details` string, required: Details of the event
  - `venue_id` string: UUID of the venue
  - `time` string: Time the event is run

## Response `201`

Succesfully added a new event

- Event
  - `id` string: UUID of event
  - `details` string: Details of the event
  - `time` string: Time the event is run
  - `venue_id` string: UUID of the venue
  - `created` string, date-time: The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
  - `updated` string, date-time: The date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

## Changes

- **2018-12-05** `5ec941f0459f`: 2 info
  - added the optional property `created` to the response with the `201` status
  - added the optional property `updated` to the response with the `201` status
- **2018-12-04** `24536106a71d`: 1 warning
  - removed the optional property `flagged` from the response with the `201` status
- **2018-12-04** `3344049bad1d`: 2 info
  - added the new optional request property `time`
  - added the optional property `time` to the response with the `201` status
- **2018-12-03** `eb3e6b40700e`: 1 info
  - added the optional property `flagged` to the response with the `201` status
- **2018-12-03** `26203c75c23f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/changes/events/post.md)

---

[API](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api.md) - [All operations](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/london-borough-of-hackney/apis/lbh-col-directory-of-services-gateway-api/revisions/eb9745a84cde?raw)
