Set channel data
Updates or creates channel data for a specific user and channel ID. If no user exists in the current environment for the given `user_id`, Knock will create the user entry as part of this request.
Set channel data
Updates or creates channel data for a specific user and channel ID. If no user exists in the current environment for the given user_id, Knock will create the user entry as part of this request.
Endpoint
PUT/v1/users/{user_id}/channel_data/{channel_id}
Rate limit
Tier 3Path parameters
user_id
string
The unique identifier of the user.
channel_id
string(uuid)
The unique identifier for the channel.
Request body
data
8 possible types
RequiredChannel data for a given channel type.
Returns
Channel data for a given channel type.
__typename
string
The typename of the schema.
channel_id
string(uuid)
The unique identifier for the channel.
data
6 possible types
Channel data for a given channel type.
provider
enum(string)
The type of provider.
push_fcmpush_apnspush_aws_snspush_expopush_one_signalchat_slackchat_ms_teamschat_discordhttp_knock_webhook