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
creator Inherited string
editor Inherited string
updatedAt Inherited Date
channel Optional IChannel
channelId Optional string
parent Optional IPost | null
parentId Optional string
reactions Optional PostReactionSummary
replies Optional IPost[] | IPagedResponse<IPost>
replyCount Optional number
userReactions Optional IReaction[]

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