POST api/Account/ChangePassword

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordDTO
NameDescriptionTypeAdditional information
UserId

string

Required

OldPassword

string

Required

Data type: Password

NewPassword

string

Required

Data type: Password

Matching regular expression pattern: ^(?=.*[a-z])(?=.*[0-9])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$

String length: inclusive between 8 and 17

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "oldPassword": "sample string 2",
  "newPassword": "sample string 3"
}

application/xml, text/xml

Sample:
<ChangePasswordDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScribingSoftware.Model.DTO">
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
  <UserId>sample string 1</UserId>
</ChangePasswordDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.