Set channel data
Changed onUpdates 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.
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/users/{user_id}/channel_data/{channel_id}
- Auth: HTTP bearer
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
- info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info
- info
added the new optional request property
///// - info
added the optional property
/////to the response with the status
- info