Skip to main content

Function: updateProjectUserCollaborator()

Defined in: src/utils/projects.ts Updates a user collaborator assignment.

Parameters

userId

string ID of the collaborator to update.

update

Update payload describing the collaborator changes.

role

"owner" | "editor" | "annotator" | "viewer" (Optional) Updated role for the collaborator.

projectId?

string (Optional) Project ID override when client is not project-scoped.

Returns

Promise<{ createdAt: string; email: string; firstName: null | string; id: string; lastName: null | string; permissions?: object[]; role: "owner" | "editor" | "annotator" | "viewer"; userId: string; }> A promise that resolves to the updated collaborator.