Update user profile
This API enables you to update an existing user profile. You can modify any supported profile attribute, including the user's distinct_id (if specified).
Note:
- Fields included in the request overwrite the existing values.
- Fields omitted from the request remain unchanged.
- If you change any value within the channel object, the entire channel data for that request is replaced (not merged), except for inapp, push, and webpush, whose tokens are appended as new device registrations.
You only need to include the fields that require changes in the request body:
{
"distinct_id": "user_12345",
"name": "John Doe",
"timezone": "Asia/Kolkata",
"status": 1,
"channel": {
"email": "john@example.com",
"sms": "+919876543210",
"whatsapp": "+919876543210",
"push": [
{
"token": "device_token",
"integration_id": "push_integration",
"status": 1
}
]
}
}
The channel object can contain one or more of the following channels: email, sms, rcs, whatsapp, voice, slack, discord, teams, inapp, push, and webpush.
The inapp and push arrays each contain device registrations with a required token and status (1=Active, 0=Inactive), and an optional integration_id.
The webpush array contains Web Push subscriptions. The token field for a webpush entry may be either a non-empty string or a Push Subscription object containing endpoint (required), expirationTime (optional, nullable), and keys with p256dh and auth (both required when token is an object).
Path parameters
Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.
Specify the version for which you would like to manage the user profile. Supported values are live and tested.
Enter the current distinct ID that uniquely identifies the user profile you want to update.
Request body
Example request
{
"channel": {
"discord": "101XXXXXXXXXX7XXXXX",
"email": "abcde@fghi.com",
"inapp": [
{
"integration_id": "IXXXXXXX",
"token": "XXXXXXXX"
}
],
"push": [
{
"integration_id": "IXXXXXXX",
"token": "ExponentPushToken[XXXXX]"
}
],
"slack": "CXXXXXXXXXX",
"sms": "+919879XXXXXX",
"teams": "General",
"voice": "+919879XXXXXX",
"whatsapp": "+919879XXXXXX"
},
"distinct_id": "new_distinct_id",
"name": "John Doe",
"timezone": "Asia/Kolkata"
}Response
Profile updated successfully
Example response
{
"_message": "1 Record(s) updated successfully",
"status": "ok"
}