Skip to main content
POST
create a post

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

information of a post to be created.

When dataType is set data payload can be anything but it will not support normal data capability (ex. images and files) and data payload size will be limit to 100kb

data
object
required

require text or images or files (can't add images with files)

text
string
deprecated
dataType
string

must be in namespace like format (ex. "upstra.customtype", "com.eko.birthday")

Example:

"upstra.customtype"

targetType
enum<string>
default:user
Available options:
user,
community,
content
targetId
string
Example:

"<userId>"

metadata
object
postId
string
tags
string[]
Maximum array length: 5

tags

createdAt
string<date-time>

The date/time when a post is created.

Example:

"2022-07-07T04:24:20.444Z"

Response

Post Information

posts
object[]
postChildren
object[]
comments
object[]
users
object[]
files
object[]
communities
object[]
communityUsers
object[]
categories
object[]
feeds
object[]
videoStreamings
object[]
videoStreamingChildren
object[]
rooms
object[]
roomChildrens
object[]
polls
object[]