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.
Path parameters
Unique identifier for the object.
The collection this object belongs to.
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
PushChannelDataDevicesOnlyAWSSNSPushChannelDataDevicesOnlyto thedatarequest propertyoneOflistrequest-property-one-of-added
- ○
- ▲
removed
PushChannelDataOneSignalChannelDataAwsSnsPushChannelDatafrom thedatarequest propertyoneOflistrequest-property-one-of-removed
- ▲
added
PushChannelDataFullAWSSNSPushChannelDataFullOneSignalChannelDataPlayerIdsOnlyto thedataresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
added
PushChannelDataTokensOnlyAWSSNSPushChannelDataTargetARNsOnlyOneSignalChannelDataPlayerIdsOnlyto thedatarequest propertyoneOflistrequest-property-one-of-added
- ○
removed
PushChannelDataOneSignalChannelDataAwsSnsPushChannelDatafrom thedataresponse propertyoneOflist for the response status200response-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
AwsSnsPushChannelDatato thedataresponse propertyoneOflist for the response status200response-property-one-of-added
- ●
added the new
push_aws_snsenum value to theproviderresponse property for the response status200response-property-enum-value-added
- ○
added
AwsSnsPushChannelDatato thedatarequest propertyoneOflistrequest-property-one-of-added
- ▲