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
  1. Send a POST request to this URI.

    /services/data/v57.0/tooling/sobjects/PlatformEventChannel

  2. If you’re using Postman, under Tooling, click Post Tooling SObject, and then replace the :SOBJECT_API_NAME placeholder with PlatformEventChannel.

  3. To configure a channel that receives change event messages, set channelType to data. Use this example request body.

  4. 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