POST api/Account/ChangePassword

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordViewModel
NameDescriptionTypeAdditional information
Email

string

None.

OldPassword

string

Required

NewPassword

string

Required

ConfirmPassword

string

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "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/DOL.WHD.Section14c.Domain.ViewModels">
  <ConfirmPassword>sample string 4</ConfirmPassword>
  <Email>sample string 1</Email>
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
</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.