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

    Function shareGraph

    • Share a graph with multiple users

      Replaces the entire shared_users list with the provided user IDs. Pass an empty array to unshare with all users.

      Parameters

      • graphId: string

        Graph ID to share

      • userIds: string[] = []

        Array of user IDs to share with (default: [])

      Returns Promise<SimpleResponse>

      Confirmation

      import { shareGraph } from "@cpod/sdk";

      // Share with multiple users
      await shareGraph("graph-123", ["user-1", "user-2"]);

      // Unshare with all users
      await shareGraph("graph-123", []);