---
title: "Update the username for a user"
method: PATCH
path: "/admin/users/{username}"
tags: ["enterprise-admin"]
---

# Update the username for a user

`PATCH /admin/users/{username}`

## Path parameters

- `username` string, required

## Request body

- object
  - `login` string, required — The user's new username.

## Response `202`

Response

- object
  - `message` string
  - `url` string

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
