POST api/ApplicationUser/ChangePassword

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordViewModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

OldPassword

string

Required

Data type: Password

NewPassword

string

Required

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

string

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "UserId": "9b959a45-3785-475b-b79e-335d1dfd2d65",
  "OldPassword": "sample string 2",
  "NewPassword": "sample string 3",
  "ConfirmPassword": "sample string 4"
}

application/xml, text/xml

Sample:
<ChangePasswordViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifeLineAPI.BusinessPortal.Model">
  <_x003C_ConfirmPassword_x003E_k__BackingField>sample string 4</_x003C_ConfirmPassword_x003E_k__BackingField>
  <_x003C_NewPassword_x003E_k__BackingField>sample string 3</_x003C_NewPassword_x003E_k__BackingField>
  <_x003C_OldPassword_x003E_k__BackingField>sample string 2</_x003C_OldPassword_x003E_k__BackingField>
  <_x003C_UserId_x003E_k__BackingField>9b959a45-3785-475b-b79e-335d1dfd2d65</_x003C_UserId_x003E_k__BackingField>
</ChangePasswordViewModel>

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 'ChangePasswordViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.