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

    Function shareProject

    • Share a project with other users

      Parameters

      • projectId: string

        The unique identifier of the project to share

      • request: ShareProjectRequest

        Share request with user IDs and permissions

      Returns Promise<ShareProjectResponse>

      Share response with status for each user

      401 - Not authenticated

      404 - Project or user not found

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

      const result = await shareProject("project-123", {
      user_ids: ["user-456", "user-789"],
      permission: "editor", // "viewer" or "editor"
      });
      console.log(`Shared with ${result.shared_count} users`);