---
title: "Updates a user in the database with form data"
method: PATCH
path: "/v1/users/{id}"
tags: ["users"]
---

# Updates a user in the database with form data

`PATCH /v1/users/{id}`

## Path parameters

- `id` integer, required

## Request body

- User
  - `id` integer
  - `user_name` string
  - `userID` string
  - `role` string
  - `realName` string

## Response `200`

successful operation

- User
  - `id` integer
  - `user_name` string
  - `userID` string
  - `role` string
  - `realName` string

## Other responses

- `400` — Invalid data format
- `401` — No JWT Token
- `403` — No access to resource
- `500` — Internal Error

## Changes

- **2019-04-09** `5363057b67b0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/changes/v1/users/:id/patch.md)

---

[API](https://skmtc.dev/maddevsio/apis/mad-devs-comedian.md) · [All operations](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/maddevsio/mad-devs-comedian/revisions/db207131dfd9/schema)
