---
title: "Change user password"
method: PUT
path: "/api/user/{id}/password"
tags: ["User Management"]
---

# Change user password

`PUT /api/user/{id}/password`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/user/{id}/password`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/user/:id/password/put.ts> (a function with typed inputs; its response is checked against the schema)

Changes the password for a user. Users can change their own password with current password verification, or admins can change any user's password.

## Path parameters

- `id` integer, required

## Request body

- object
  - `password` string: Current password (required for self-change)
  - `newPasswordGroup` object
    - `password` string: New password
    - `password_confirmation` string: New password confirmation

## Response `200`

Password change result

- object
  - `success` boolean
  - `message` string
  - `refresh_token` string, nullable

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
