updatePostStatus

Function

update post status NOTE: this method will only update a post's status

Parameters

Parameter Type Default Notes
options Required IUpdatePostStatusParams

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