Manage User Profiles

Add/Update channel data

This 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.

patch/{WSID}/{version}/profiles/{distinct_id}/channel

Path parameters

WSIDstring required

Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.

version'live' | 'test' required

Specify the version for which you would like to manage the user profile.

distinct_idstring required

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": "+919879XXXXXX",
    "teams": "General",
    "voice": "+919879XXXXXX",
    "whatsapp": "+919879XXXXXX"
  }
}

Response

Profile updated successfully

_messagestring required
statusstring required

Example response

{
  "_message": "Channel has been modified successfully",
  "status": "ok"
}

Changes

Changed in 1 of the 35 revisions of this API.6

    • the response property _message became required for the status 200

      response-property-became-required

    • the response property _message became required for the status 400

      response-property-became-required

    • the response property _message became required for the status 401

      response-property-became-required

    • the response property status became required for the status 200

      response-property-became-required

    • the response property status became required for the status 400

      response-property-became-required

    • the response property status became required for the status 401

      response-property-became-required