Skip to main content

Change a user's password

POST /api/v1/users/:userId/change-password

Description

Change a user's password.

Headers:

  • Content-Type: application/json
  • Authorization: Bearer {{bearerToken}}

URL: /api/v1/users/:userId/change-password

  • Path Parameters:

    • userId (Required): User ID
  • Response: The response is "Created" with a code of 201.

/api/v1/users/:userId/change-password

Headers

Content-TypeValue
Content-Typeapplication/json

Body (raw)

{
"oldPassword": "<string>",
"newPassword": "<string>",
"confirmPassword": "<string>"
}

🔑 Authentication bearer

ParamvalueType
tokenbearerTokenstring

Response: 200

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /api/v1/users/:userId/change-password \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!