Request Parameters:


Change Password will allow user to change the password.


URL:../Api/Client/ChangePassword


Header:

Content-Type:application/json


Required Parameters :  EmailId,OldPassword,NewPassword


Case-1. Validating parameters :
Parameter:

{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "EmailId":"",

    "OldPassword": "",

    "NewPassword": ""

}


Response :
{

    "Status": 2,

    "Message": "Invalid parameters.",

    "Data": null,

    "ValidationMessage": [

        "The EmailId field is required.",

        "The NewPassword field is required.",

        "The OldPassword field is required."

    ],

    "ErrorMessage": null

}


Case-2. Incorrect parameters :
Parameter:
{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "EmailId":"David@gmail.com",

    "OldPassword": "David123pp",

    "NewPassword": "123456"

}


Response :
{

    "Status": 0,

    "Message": "Old password doesn't match",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Successfully changed password :
Parameter:
{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "EmailId":"David@gmail.com",

    "OldPassword": "David123",

    "NewPassword": "123456"

}


Response :
{

    "Status": 1,

    "Message": "Password was changed",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}