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.
Path parameters
The unique identifier of the user.
The unique identifier for the channel.
Request body
Example request
{
"data": {
"tokens": [
"push_token_1"
]
}
}Response
OK
Example response
{
"__typename": "ChannelData",
"channel_id": "123e4567-e89b-12d3-a456-426614174000",
"data": {
"devices": [
{
"locale": null,
"timezone": null,
"token": "device_1"
}
],
"tokens": [
"push_token_1"
]
}
}Changes
Changed in 3 of the 30 revisions of this API.314
- ○
added to the
request propertyoneOflistrequest-property-one-of-added
- ○
- ▲
removed from the
request propertyoneOflistrequest-property-one-of-removed
- ▲
added to the
response propertyoneOflist for the response statusresponse-property-one-of-added
- ○
added to the
request propertyoneOflistrequest-property-one-of-added
- ○
removed from the
response propertyoneOflist for the response statusresponse-property-one-of-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added to the
response propertyoneOflist for the response statusresponse-property-one-of-added
- ●
added the new
push_aws_snsenum value to theresponse property for the response statusresponse-property-enum-value-added
- ○
added to the
request propertyoneOflistrequest-property-one-of-added
- ▲