---
title: "PATCH /users/{id}/"
method: PATCH
path: "/users/{id}/"
tags: ["users"]
---

# PATCH /users/{id}/

`PATCH /users/{id}/`

Partial update of a user.

## Path parameters

- `id` integer, required

## Request body

- PatchedUserCreateUpdate
  - `username` string — The user's log in name.
  - `first_name` string
  - `last_name` string
  - `email` string, email
  - `password` string
  - `is_superuser` boolean — Designates that this user has all permissions without explicitly assigning them.

## Response `200`

Update successful. Return an updated user.

- UserDetail
  - `id` integer, required
  - `username` string, required — The user's log in name.
  - `email` string, email
  - `first_name` string
  - `last_name` string
  - `is_superuser` boolean — Designates that this user has all permissions without explicitly assigning them.
  - `resource` object, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2024-04-23** `cbf68ddd9760` — 1 breaking, 3 warning, 6 info
  - removed the required property `roles` from the response with the `200` status
  - removed the request property `roles` (media type: application/json)
  - removed the request property `roles` (media type: application/x-www-form-urlencoded)
  - removed the request property `roles` (media type: multipart/form-data)
  - …6 more
- **2023-08-21** `c84b4813cab1` — 1 breaking, 5 info
  - the `username` response property's maxLength was unset from `150` for the response status `200`
  - the endpoint scheme security `cookieAuth` was added to the API
  - removed the pattern `^[\w.@+-]+$` from the request property `username` (media type: application/json)
  - removed the pattern `^[\w.@+-]+$` from the request property `username` (media type: application/x-www-form-urlencoded)
  - …2 more
- **2023-05-19** `f84d9240fdf2` — 2 info
  - the endpoint scheme security `cookieAuth` was removed from the API
  - added the optional property `is_superuser` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/users/:id/patch.md)

---

[API](https://skmtc.dev/ansible/apis/event-driven-ansible-api.md) · [All operations](https://skmtc.dev/ansible/apis/event-driven-ansible-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ansible/event-driven-ansible-api/revisions/feeac1db5ade/schema)
