updatePost

Function

update post NOTE: this method currently only update post.title and post.body

Parameters

Parameter Type Default Notes
options Required IUpdatePostOptions

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:94