Magidoc

insertPost
Mutation

Creates a new news post.

You can also specify the category of the post and the attachment file id or even predefined reactions to post.

Access: Requires user access to the workspace

Examples: { "body": "This is a very exciting news post", "workspaceId": "7driFnaZjDQZndHqs", "category": "news" }

Arguments

#

_id

Post unique ID. Can be omitted, will be generated automatically

body

Non-null

Post body. Must be a valid HTML string

workspaceId

ID !
Non-null

Workspace ID

fileId

Attachment file ID. File should be pre-uploaded to Hive

category

Post category. Omit if you want to use no category

Response

#

Returns Post !.

Example

#