ChangePassword

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: ==Summary== Changes a users password for accessing the loyalty program '''Resource''' POST api/v1/changePassword '''Parameters''' memberId password Example Call http://demo-loyalty.p...)
Current revision (22:19, 29 June 2016) (edit) (undo)
m (Summary)
 
Line 5: Line 5:
'''Resource'''
'''Resource'''
-
POST
+
POST api/v1/changePassword
-
api/v1/changePassword
+
'''Parameters'''
'''Parameters'''
-
memberId
+
* memberId
-
password
+
* password
-
 
+
-
Example Call
+
-
http://demo-loyalty.promodev.eprize.com/api/v1/changePassword
+
Example Request Body:
Example Request Body:
-
{
+
 
-
"memberId": 278000000118
+
{
-
“password”: “ePrize#”
+
"memberId": 278000000118
-
}
+
"password": "Passw0rd1"
 +
}
Example Response: Success
Example Response: Success
-
{
+
 
-
"success": true
+
{
-
}
+
"success": true
 +
}
Example Response: Member Id not Found
Example Response: Member Id not Found
-
{
+
{
-
"Error": {
+
"Error": {
-
"Code": "error.business.RuleProcessingException.RecordNotFound",
+
"Code": "error.business.RuleProcessingException.RecordNotFound",
-
"Message": "Record Not Found"
+
"Message": "Record Not Found"
 +
}
}
}
-
}
 

Current revision

Summary

Changes a users password for accessing the loyalty program

Resource

POST api/v1/changePassword

Parameters

  • memberId
  • password

Example Request Body:

   {
       "memberId": 278000000118
       "password": "Passw0rd1"
   }

Example Response: Success

   {
        "success": true
    }

Example Response: Member Id not Found

   {
       "Error": {
            "Code": "error.business.RuleProcessingException.RecordNotFound",
           "Message": "Record Not Found"
       }
   }
Personal tools