POST api/Account/ChangePassword

Change password

Request Information

URI Parameters

None.

Body Parameters

Change password parameters

PasswordChangeDto
NameDescriptionTypeAdditional information
UserName

string

None.

OldPassword

string

None.

NewPassword

string

None.

ConfirmNewPassword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "OldPassword": "sample string 2",
  "NewPassword": "sample string 3",
  "ConfirmNewPassword": "sample string 4"
}

application/xml, text/xml

Sample:
<PasswordChangeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
  <ConfirmNewPassword>sample string 4</ConfirmNewPassword>
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
  <UserName>sample string 1</UserName>
</PasswordChangeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Status of the password change action

ResponseOfBoolean
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": true
}

application/xml, text/xml

Sample:
<ResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data>true</Data>
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfboolean>