POST api/Account/ChangePassword

Request Information

URI Parameters

None.

Body Parameters

TaskyamWebAPI.Models.Account.ChangePasswordModel
NameDescriptionTypeAdditional information
OldPassword

string

Data type: Password

NewPassword

string

Required

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "OldPassword": "sample string 1",
  "NewPassword": "sample string 2"
}

application/xml, text/xml

Sample:
<ChangePasswordModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <NewPassword>sample string 2</NewPassword>
</ChangePasswordModel>

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

Response Information

Resource Description

New password or error message

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string>sample string 1</string>