Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Change password

Change the password for the current user.

Validation Rules:

  • New password supplied cannot be null or blank

Example request URI(s):

http://example.com/confluence/rest/api/user/current/password

POST/rest/api/user/current/password
Request body
application/json

password change details

oldPasswordstring
newPasswordstring
Responses
204

returned if the password changed successfully.

400

returned if any error occurs while changing user password. Refer the validation rules above.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
401

returned if the user is not authenticated.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

returned if current password is wrong or if the user has exceeded number of allowed failed login attempts .

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Bodyapplication/json
Request
curl -X POST 'http://example.com:7990/confluence/rest/api/user/current/password' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "oldPassword": "oldPassword",
  "newPassword": "newPassword"
}'
Response
returned if the password changed successfully.

Was this page helpful?