Create a new category for organizing users or content
Category creation data (name, description)
The newly created category object
400 - Invalid category data
401 - Not authenticated
403 - Admin privileges required
import { createCategory } from "@cpod/sdk";const category = await createCategory({ name: "Engineering", description: "Engineering team members",});console.log(`Created category: ${category.id}`); Copy
import { createCategory } from "@cpod/sdk";const category = await createCategory({ name: "Engineering", description: "Engineering team members",});console.log(`Created category: ${category.id}`);
Create a new category for organizing users or content