Add/Update channel data
Changed onThis API enables you to update existing data for sms, whatsapp, email, slack, discord, and teams channels, and add new tokens for push and inapp channels. It works like an update for channels that can hold a single destination only and like an insert for channels that can hold multiple destinations/tokens.
Request
- Base URLhttps://api.fyno.io/v1
- URLhttps://api.fyno.io/v1/{WSID}/{version}/profiles/{distinct_id}/channel
- AuthHTTP bearer
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.
Enter the distinct ID that you currently use to identify the user.
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": "+49XXXXXXXXX",
"teams": "General",
"voice": "+49XXXXXXXXX",
"whatsapp": "+49XXXXXXXXX"
}
}Response
Profile updated successfully
Example response
{
"_message": "Channel has been modified successfully",
"status": "ok"
}Changes
- breaking
removed the enum value
livefrom thepathrequest parameterversion - breaking
removed the enum value
testfrom thepathrequest parameterversion
- breaking
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- info