---
title: "Update user details."
method: PATCH
path: "/user/{id}"
---

# Update user details.

`PATCH /user/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `displayName` string
  - `position` string

## Response `200`

A successful response

- string

## Other responses

- `400` — A bad request
- `401` — Unauthorized for the requested operation on the resource
- `404` — Resource not found
- `500` — Something went wrong

## Changes

> 16 revisions in range; 1 could not be searched.

- **2023-08-11** `cf0e7791a87a` — 1 warning, 2 info
  - deleted the `header` request parameter `okr-admin-secret`
  - the endpoint scheme security `apiKey AND okrAdminSecret` was added to the API
  - the endpoint scheme security `api_key` was removed from the API
- **2023-03-30** `a0a44ab6d227` — 1 info
  - endpoint added
- **2023-03-06** `d651c18ad7d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/oslokommune/apis/okr-tracker-api/changes/user/:id/patch.md)

---

[API](https://skmtc.dev/oslokommune/apis/okr-tracker-api.md) · [All operations](https://skmtc.dev/oslokommune/apis/okr-tracker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oslokommune/okr-tracker-api/revisions/7c311e87bded/schema)
