MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / updateWorkspaceMemberRole

Function updateWorkspaceMemberRole

frontend/src/api/workspaces.ts:81–83  ·  view source on GitHub ↗
(workspaceId: number, userId: number, role: string)

Source from the content-addressed store, hash-verified

79};
80
81export const updateWorkspaceMemberRole = async (workspaceId: number, userId: number, role: string) => {
82 await api.put(`/workspaces/${workspaceId}/members/${userId}/role`, { role });
83};
84
85export const getWorkspaceInvitations = async () => {
86 const response = await api.get<Workspace[]>('/workspaces/invitations');

Callers 1

handleRoleChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected