POST api/ChangePassword/ChangePassword

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordModel
NameDescriptionTypeAdditional information
UserId

integer

None.

OldPassword

string

None.

NewPassword

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ChangePasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Login">
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
  <UserId>1</UserId>
</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

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>