Create a Channel for a Custom Platform Event
A channel is a stream of events. It contains members that specify the type of events that can be received on the channel. A channel can contain a stream of platform events or change data capture events, but not both.
|USER PERMISSIONS NEEDED|
|To create a PlatformEventChannel:||Customize Application|
|To use REST API:||API Enabled|
Send a POST request to this URI:
If you’re using Postman, under Tooling, click Post Tooling SObject, and then replace the
Use this example request body.
Send the request. The response received looks similar to this response.
To configure a channel that receives custom platform event messages, set
channelType to event, like in this example. To configure a channel that receives change data capture event messages, set
data, as follows:
For more information, see PlatformEventChannel in the Tooling API Developer Guide.