@cpod/sdk - v0.2.7
    Preparing search index...

    Function createCategory

    • Create a new category for organizing users or content

      Parameters

      Returns Promise<Category>

      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}`);