Function
updateWorkspaceMemberRole
(workspaceId: number, userId: number, role: string)
Source from the content-addressed store, hash-verified
| 79 | }; |
| 80 | |
| 81 | export const updateWorkspaceMemberRole = async (workspaceId: number, userId: number, role: string) => { |
| 82 | await api.put(`/workspaces/${workspaceId}/members/${userId}/role`, { role }); |
| 83 | }; |
| 84 | |
| 85 | export const getWorkspaceInvitations = async () => { |
| 86 | const response = await api.get<Workspace[]>('/workspaces/invitations'); |
Tested by
no test coverage detected