Share a project with other users
The unique identifier of the project to share
Share request with user IDs and permissions
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`); Copy
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`);
Share a project with other users