Magidoc

insertNewsCategory
Mutation

Creates a new custom news category in the workspace.

On first write in a workspace, seeds the default categories and migrates any posts that were using legacy string category ids to the new random ids, then marks the workspace as newsCategoriesApplied.

Access: Requires user access to the workspace.

Arguments

#

_id

News category unique ID. Can be omitted, will be generated automatically

workspaceId

ID !
Non-null

Workspace ID

name

Non-null

Display name (unique per workspace)

color

Non-null

Hex color (e.g. #A1B2C3)

Response

#

Returns NewsCategory !.

Example

#