Custom Post

If text, image, video, and file types post are not enough, you can create your own type with whatever data you need for rendering. To do this, you need to call PostRepository.createPost and pass the targetID, targetType, and data which is an object containing whatever data you need for your post.

The following parameters are optional:

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

    The dataType parameter should have the custom prefix.

  • tags - text that will be used in post query. You can add up to five tags. Each tag can have a maximum length of 24 characters.

  • attachments - images and other files you want to include in your post. You can only attach one file type. This means that it must either be all images, all files, or all video files.

Updating custom post is not yet supported.

Last updated