POST api/User/CreateNewPassword

Request Information

URI Parameters

None.

Body Parameters

PasswordChangeViewModel
NameDescriptionTypeAdditional information
oldpassword

string

None.

password

string

None.

logininfoid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "oldpassword": "sample string 1",
  "password": "sample string 2",
  "logininfoid": 3
}

application/xml, text/xml

Sample:
<PasswordChangeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfhatch.Models">
  <logininfoid>3</logininfoid>
  <oldpassword>sample string 1</oldpassword>
  <password>sample string 2</password>
</PasswordChangeViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResultViewModel
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

errorCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {},
  "errorCode": 4
}

application/xml, text/xml

Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfhatch.Models">
  <data />
  <errorCode>4</errorCode>
  <message>sample string 2</message>
  <status>true</status>
</HttpResultViewModel>