Set channel data
Sets the channel data for the specified object and channel. If no object exists in the current environment for the given `collection` and `object_id`, Knock will create the object as part of this request.
Set channel data
Sets the channel data for the specified object and channel. If no object exists in the current environment for the given collection and object_id, Knock will create the object as part of this request.
Endpoint
PUT/v1/objects/{collection}/{object_id}/channel_data/{channel_id}
Rate limit
Tier 3Path parameters
object_id
string
Unique identifier for the object.
collection
string
The collection this object belongs to.
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