Difference between revisions of "ChangePin"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description=Set the new PIN for user. The new pin value should respect the following regular expression: "^[0-9]{4,4}$". This method only can be used by ...")
 
 
Line 23: Line 23:
 
{{Api_Parameter|
 
{{Api_Parameter|
 
ParamName=pin
 
ParamName=pin
|ParamType=int
+
|ParamType=string
 
|ParamRequired=required
 
|ParamRequired=required
 
|ParamDescription=Current user pin
 
|ParamDescription=Current user pin

Latest revision as of 08:27, 17 February 2016

Description

Set the new PIN for user.

The new pin value should respect the following regular expression: "^[0-9]{4,4}$".


This method only can be used by logged user.

Parameters

  • token (String, required)
A valid token for identifying the API session context. The token can be anonymous or logged.
  • pinType (int, required)
Define the kind of pin the request wants to change.
  • pin (string, required)
Current user pin
  • newPin (String, required)
The new value for the pin.


Returns

Returns a JSON object containing true for successful.

Example:

{

"StatusCode": 0,
"Severity": 1,
"StatusMessage": "OK",
"Content": true

}


Exceptions


Caching

This method is not cached.


Known issues

  • None


Version history

API Version Number Change description Changes author
1.0 Initial method design Harley Cabral


See also