Custom Post

If you'd like to display content on your app that cannot be represented by the available text, image, video, and file post types, you can create your own custom post type. Custom post types allow you to include the necessary data for rendering, such as additional metadata and custom data formatting. This is useful if you want to present specific types of content to your users.

To create a custom post type, you can query the user, community, or global feed using our SDK's APIs. Please refer to Feed. For additional information on rendering custom posts with UIKit, please see Post Rendering.

  • dataType - a string that defines the type of the post so you can distinguish your new post from others

  • data - a free-form JSON object that can be customized based on your use cases.

The dataType parameter should have the custom prefix.

Last updated