Update User Data

The below API is used to update user profile

Request: POST

Signature: /api/mobile/UpdateUserData?Token={Login_Token}

Body:

{

"UserID":"USER_ID",

"Field":

[

{

"Code":"FIELD_CODE",

"Value":"FIELD_VALUE"

}

],

"Data":

[

{

"Code":"DATA_FIELD_CODE",

"Value":"DATA_FIELD_VALUE"

}

]

}

Response:

{
    "Code": 1,
    "Info": "User data updated successfully",
    "RowsAffected": 1,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": null
}

Sample: /api/mobile/UpdateUserData?Token=VomYEMiECFFyAQ3==

Body:

{
"UserID":"TOM",
"Field":
[

{

"Code":"EMAIL",

"Value":"tom@gmail.com"

},

        {

"Code":"ENABLESMS",

"Value":"false

},

        {

"Code":"MOBILETRACKING",

"Value":120

}

],
"Data":
[

{

"Code":"ADDR",

"Value":"12 XYZ, Kenya"

}

]
}

Response:

{
    "Code": 1,
    "Info": "User data updated successfully",
    "RowsAffected": 1,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": null
}

Things to know about this API:

    1. Token - You can use Login API to get token displayed under Info
    2. These fields are mandatory while sending request body:
        • User ID
        • Code
        • Value
  1. Below are the User Header Fields and their Code:
    1. Data value for Item list must be separated with semi colon (;)