Create a Channel for a Change Event
Create a channel that holds a stream of change events.
USER PERMISSIONS NEEDED | |
---|---|
To create a PlatformEventChannel: | Customize Application |
To use REST API: | API Enabled |
-
Send a POST request to this URI.
/services/data/v57.0/tooling/sobjects/PlatformEventChannel
-
If you’re using Postman, under Tooling, click Post Tooling SObject, and then replace the
:SOBJECT_API_NAME
placeholder withPlatformEventChannel
. -
To configure a channel that receives change event messages, set
channelType
todata
. Use this example request body. -
Send the request. The response received looks similar to this response.
Now that you created a channel for change events, add a member for one change event. See Create a Channel Member to Associate a Change Event.
See Also
- Tooling API Developer Guide: PlatformEventChannel
- Metadata API Developer Guide: PlatformEventChannel
- Change Data Capture Developer Guide: Compose Streams of Change Data Capture Notifications with Custom Channels