updatePost

Function

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

Parameters

Parameter Type Default Notes
options Required IUpdatePostParams

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