UPDATEUSER
|
Update user data |
IF this call is invoked BEFORE the user submits the assessment, since the profile data be passed again during submission, the data used will be the last submitted.
This function CAN be called also in case there is the need to update a user’s profile data AFTER the submission
Parameters
Parameter |
Value |
action |
|
UPDATEUSER |
|
token |
|
||
userLogin |
|
{the ID generated using GENERATEUSERID} |
|
userPassword |
|
{the password generated using GENERATEUSERID} |
|
userFullName |
|
the full name of the user. It will be used on the PDF reports |
|
userAge |
|
{0 to 99} |
user's age |
userGender |
|
{M / F/ X} |
user's gender |
userEmail |
|
{a valid email address} |
|
userDesignation |
|
{any value} |
|
format |
JSON / XML |
||
Success Response
{UserLogin}:OK |
|
JSON
{ "UPDATE": "OK" } |
|
Errors
Code |
Description |
ERROR101 |
The token used is not in the database (request a new token) |
ERROR102 |
Token IP does not macth the requesting IP -The token is an existing token but the IP that issued the API call is not the one the token was authorized to use. Please inform us about the IP change, if your server has a new IP or, issue calls from the right IP address. |
ERROR201 |
The user id was not found in the database |
ERROR202 |
The user id was not associated to your account |
ERROR203 |
The field userFullName was left empty or was not passd through during the API call |
ERROR204 |
The field userAge had a value that did not range between 0 to 99, was empty or was not passd through during the API call |
ERROR205 |
The field userGender had a value that was not {M / F/ X}, was empty or was not passd through during the API call |
ERROR206 |
(not used any longer) |
ERROR207 |
The userEmail was not a proper email address, was empty or was not passd through during the API call |
ERROR208 |
The userDesignation was empty or was not passd through during the API call |
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator


