---
title: "Update an event"
method: PUT
path: "/events/{id}"
tags: ["Events"]
---

# Update an event

`PUT /events/{id}`

Events can only be updated by the organization that owns them.
Ownership is determined by the event's reserved tags.

The updated event must be assigned at least one of the organization's
reserved tags. Otherwise all reserved tags of the event are preserved
by implicitly re-adding them.

## Path parameters

- `id` string, required

## Request body

- Event
  - `id` string — Identifier of a resource
  - `title` string
  - `description` string
  - `start` integer — Unix time (number of seconds since 00:00::00 1. January, 1970, UTC)
  - `end` integer — Unix time (number of seconds since 00:00::00 1. January, 1970, UTC)
  - `created_at` integer — Precise Unix time (number of milliseconds since 00:00::00.000 1. January, 1970, UTC) for system-generated time stamps
  - `created_by` string — The email address of the user who is responsible for the content. This information is only available for authorized organizations.
  - `lat` number, double — Geographic latitude (in degrees)
  - `lng` number, double — Geographic longitude (in degrees)
  - `street` string
  - `zip` string
  - `city` string
  - `country` string
  - `state` string
  - `email` string — An e-mail address.
  - `telephone` string
  - `tags` Tag[]
  - `homepage` string
  - `registration` 'email' | 'telephone' | 'homepage' — Type of registration
  - `organizer` string
  - `image_url` string
  - `image_link_url` string

## Response `200`

Successfully updated the event

## Other responses

- `401` — Access token is missing or invalid or the user has insufficient permission

## Changes

- **2020-08-13** `b2a47c048e83` — 6 breaking, 1 info
  - added `#/components/schemas/UnixTime` to the `end` request property `allOf` list
  - added `#/components/schemas/UnixTime` to the `start` request property `allOf` list
  - added `#/components/schemas/UnixTimeMillis` to the `created_at` request property `allOf` list
  - removed `#/components/schemas/UnixTime` from the `end` request property `oneOf` list
  - …3 more
- **2020-08-13** `bca9ebb2d24a` — 4 breaking, 1 info
  - added `#/components/schemas/Email` to the `email` request property `allOf` list
  - added `#/components/schemas/Phone` to the `telephone` request property `allOf` list
  - the `email` request property type/format changed from `string`/`` to ``/``
  - the `telephone` request property type/format changed from `string`/`` to ``/``
  - …1 more
- **2020-08-13** `ddfd4e39c98d` — 3 breaking, 5 warning, 3 info
  - the `email` request property's minLength was increased from `0` to `3`
  - the `email` request property type/format changed from ``/`` to `string`/``
  - the `telephone` request property type/format changed from ``/`` to `string`/``
  - removed `#/components/schemas/Email` from the `email` request property `allOf` list
  - …7 more

[Change history](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api/changes/events/:id/put.md)

---

[API](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api.md) · [All operations](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kartevonmorgen/openfairdb-api/revisions/4c454390b099/schema)
