PUT api/v1/users/changepassword

Changes the users password.

Request Information

URI Parameters

None.

Body Parameters

The password change request.

PasswordChangeRequest
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

OldPassword

string

Required

String length: inclusive between 0 and 255

NewPassword

string

Required

String length: inclusive between 0 and 255

Request Formats

application/json, text/json

Sample:
{
  "UserId": "64809eea-f649-4454-86fe-e078e409359a",
  "OldPassword": "sample string 2",
  "NewPassword": "sample string 3"
}

text/html

Sample:
{"UserId":"64809eea-f649-4454-86fe-e078e409359a","OldPassword":"sample string 2","NewPassword":"sample string 3"}

application/xml, text/xml

Sample:
<PasswordChangeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.User">
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
  <UserId>64809eea-f649-4454-86fe-e078e409359a</UserId>
</PasswordChangeRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PasswordChangeRequest'.

Response Information

Resource Description

None.