---
title: "Update password for a user"
method: PUT
path: "/users/{id}/passwd"
tags: ["users"]
---

# Update password for a user

`PUT /users/{id}/passwd`

Update password for the specified user.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Request body

- UsersUserUpdatePasswordPayload
  - `NewPassword` string, required — New Password
  - `Password` string, required — Current Password

## Response `204`

Success

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — User not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/ec51a8194ac0/schema)
