POST api/User/ChangePassword
Request Information
URI Parameters
None.
Body Parameters
ChangePassword| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
Required |
|
| UserName | string |
Required |
|
| OldPassword | string |
Required Matching regular expression pattern: ^((?=.*[a-z])(?=.*\d)).+$ String length: inclusive between 8 and 18 |
|
| NewPassword | string |
Required Matching regular expression pattern: ^((?=.*[a-z])(?=.*\d)).+$ String length: inclusive between 8 and 18 |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"UserName": "sample string 2",
"OldPassword": "sample string 3",
"NewPassword": "sample string 4"
}
multipart/form-data
Sample:
{"UserId":1,"UserName":"sample string 2","OldPassword":"sample string 3","NewPassword":"sample string 4"}
application/xml, text/xml
Sample:
<ChangePassword xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolBusiness"> <NewPassword>sample string 4</NewPassword> <OldPassword>sample string 3</OldPassword> <UserId>1</UserId> <UserName>sample string 2</UserName> </ChangePassword>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, multipart/form-data, application/xml, text/xml
Sample:
Sample not available.