Self password update API
The WSO2 Identity Server - User Password Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
internal_user_password_update | Allows the authenticated user to update their own password. |
me
Operations for the authenticated user.
Change user password
POST /me/change-password
This API is used to change the password of the authenticated user.
Scope(Permission) required: internal_user_password_update
Scopes: internal_user_password_update
Request body (required): application/json
Password change request.
Schema: PasswordChangeRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
currentPassword | string | Yes | Current password of the user. |
newPassword | string | Yes | New password to set for the user. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Password successfully changed | |
400 | Bad Request | Error |
401 | Unauthorized | Error |
403 | Forbidden | Error |
500 | Internal Server Error | Error |
Schemas
PasswordChangeRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
currentPassword | string | Yes | Current password of the user. |
newPassword | string | Yes | New password to set for the user. |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?