createPost

Function

create post

Parameters

Parameter Type Default Notes
options Required ICreatePostOptions

Returns

{Promise}

Promise<IPost>
Property Type Notes
body string
id string
status PostStatus
createdAt Inherited Date
creator Inherited string
editor Inherited string
updatedAt Inherited Date
appInfo Optional string
channel Optional IChannel
channelId Optional string
discussion Optional string
geometry Optional Geometry
parent Optional IPost
parentId Optional string
reactions Optional IReaction[]
replies Optional IPost[] | IPagedResponse<IPost>
replyCount Optional number
title Optional string
userReactions Optional IReaction[]

Function defined in packages/discussions/src/posts.ts:39