Update User Location
The below API is used to update user profile
Request: POST
Signature: /api/mobile/UpdateLocation?Token={Login_Token}
Body:
{
"UserID":"USER_ID",
"Field":
[
{
"Code":"FIELD_CODE",
"Value":"FIELD_VALUE"
}
],
"Data":
[
{
"Code":"DATA_FIELD_CODE",
"Value":"DATA_FIELD_VALUE"
}
]
}
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:
- Token - You can use Login API to get token displayed under Info
- These fields are mandatory while sending request body:
- User ID
- Code
- Value
- Below are the User Header Fields and their Code:
- Data value for Item list must be separated with semi colon (;)