createPost

Function

create post

Parameters

Parameter Type Default Notes
options Required ICreatePostParams

Returns

{Promise}

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

Function defined in discussions/src/posts/posts.ts:52