POST api/SysSecurity/ChangePassword

Change the password of the current user. This API requires a valid authentication token

Request Information

URI Parameters

None.

Body Parameters

Change password request data

ChangePasswordInput
NameDescriptionTypeAdditional information
OldPassword

Existing Password of the User

string

Required

Max length: 30

Min length: 6

NewPassword

New Password of the User

string

Required

Max length: 30

Min length: 6

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ChangePasswordInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GBG.Base.WebAPI.Models">
  <NewPassword>sample string 2</NewPassword>
  <OldPassword>sample string 1</OldPassword>
</ChangePasswordInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Success of the password change. Failed response includes Http Status 400, 401, 500

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

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