---
title: "Changes to Add a public key on behalf of a user"
method: POST
path: "/admin/users/{username}/keys"
---

# Changes to Add a public key on behalf of a user

`POST /admin/users/{username}/keys`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 12 revisions.

- **2026-10-28** `7ef50c4c527f`: 2 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 2 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `422`

---

[Operation](https://skmtc.dev/gitea/apis/gitea-api/docs/admin/users/:username/keys/post.md) - [API](https://skmtc.dev/gitea/apis/gitea-api.md) - [Page](https://skmtc.dev/gitea/apis/gitea-api/changes/admin/users/:username/keys/post)
