updatePostSharing

Function

update post channel NOTE: this method will change the channel a post belongs to

Parameters

Parameter Type Default Notes
options Required IUpdatePostSharingOptions

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