HomeAppVirality DocsAppVirality APIsUpdate User Details

Update User Details

Allows you to update User details like: Name, Email, StoreId, Country, etc.


We all appreciate the importance of having up to date info about App users, especially if your use case requires their whereabouts.

Use this API to resolve & update changes to a particular User’s details.

Base URL  https://api.appvirality.com

 POST         /v2_0/updateuserinfo

Content-Type application/json


Input i.e. Request

{
"apikey":"176502556c624614b913a62400ab4d7e",
"privatekey":"8b05ee42d9c941698bbba44c00cc32d1",
"userkey": "176502556c624614b913a62400ab4d7e",
"emailId":"xxxrahulxxx@gmail.com",
"UserIdInstore":"f45d2318de",
"appUserName":"Rahul",
"ProfileImage":"[Image URL]",
"city":"Hyderabad",
"state":"Telangana",
"country":"India",
"phone":"918927266283",
"isExistingUser":"false",
"PushDeviceToken":"AxzADcw9c8bew89ccwASDA9acw9ec9ewechASDSAhsaih9w9w8ehASa9wech9wehc9WQEwhcc"
}
Input Params
Input Params Description
apikey API Key of the App
Get it from Dashboard >> App Details
privatekey Private key for API requests
Get it from: Dashboard >> App Details >> Click App Settings >> Scroll down to Advanced Settings
userkey
(conditional)
User Key for the App user – a unique identifier for every App User recorded
EmailId
(conditional)
Email of the user
UserIdInstore
(conditional)
ID of the user in your App (helps to identify users on dashboard as you do in your app)
AppUserName
 (optional)
Name of the App user (is required to personalize the referral messages)
If the name consists of special characters, then send the content in URI encoded format.
ProfileImage
(optional)
User profile picture URL (required to personalize the referral messages)
city
(optional)
City of the User Location
state
(optional)
State of the User Location
country
(optional)
Country of the User Location
Phone
(optional)
User phone number (Digits only)
isExistingUser
(optional)
Set this as True, if you identify the user as existing user
(this is useful if you don't want to reward existing users)
PushDeviceToken
(optional)
Unique id assigned to the device by your Push Notification Service
conditional – One of the conditional parameters is mandatory to identify the user. Priority for user identification is userkey, UserIdInstore and EmailId. Keys UserIdInstore and EmailId are also used to update the user details.


Response

{
    "success": true,
    "statuscode": 1,
    "message": "Success"
}
Response Params
Output Params Description
success returns true on successful update
message Information regarding API call
status code code based on status of the API call

Status codes which you will see while using updateuserinfo API

Status codes and description for API responses
Status Code Description
1 Success
2 Invalid User Key
5 Invalid StoreID or EmailID
Was this article helpful to you? Yes 1 No