---
title: "Update an entry"
method: PUT
path: "/entries/{id}"
tags: ["Entries/Places"]
---

# Update an entry

`PUT /entries/{id}`

The edited entry must include the *next version* of this entry
in the `version` field, where *next version* = *current version* + 1.

## Path parameters

- `id` string, required — Identifier of a resource

## Request body

- NewEntryWithVersion
  - `title` string, required
  - `description` string, required
  - `lat` number, double, required — Geographic latitude (in degrees)
  - `lng` number, double, required — Geographic longitude (in degrees)
  - `street` string
  - `zip` string
  - `city` string
  - `country` string
  - `state` string
  - `email` string — An e-mail address of a user
  - `telephone` string
  - `homepage` string
  - `opening_hours` string — The opening hours in OpenStreetMap format. Specification: https://wiki.openstreetmap.org/wiki/Key:opening_hours Reference implementations: https://github.com/opening-hours/ Generator tool: https://projets.pavie.info/yohours/ The service trims leading/trailing whitespaces and stores values as is. Values are currently not validated against the OSM format syntax!
  - `categories` string[]
  - `tags` Tag[]
  - `image_url` string
  - `image_link_url` string
  - `links` CustomLink[] — An unordered list of custom links. The ordering of list items may change between different revisions even if this list has not been modified. Don't make any assumptions about a particular ordering!
    - `url` string, required
    - `title` string
    - `description` string
  - `version` integer

## Response `200`

Successful response

## Changes

- **2020-08-13** `ddfd4e39c98d` — 3 breaking, 4 warning, 4 info
  - the `allOf[#/components/schemas/NewEntry]/email` request property's minLength was increased from `0` to `3`
  - the `allOf[#/components/schemas/NewEntry]/email` request property type changed from no type to `string`
  - the `allOf[#/components/schemas/NewEntry]/telephone` request property type changed from no type to `string`
  - removed `#/components/schemas/Email` from the `allOf[#/components/schemas/NewEntry]/email` request property `allOf` list
  - …7 more

[Change history](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api/changes/entries/: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/ddfd4e39c98d/schema)
