(workspaceId: number, data: UpdateWorkspaceDto)
| 74 | }; |
| 75 | |
| 76 | export const updateWorkspace = async (workspaceId: number, data: UpdateWorkspaceDto) => { |
| 77 | const response = await api.put<Workspace>(`/workspaces/${workspaceId}`, data); |
| 78 | return response.data; |
| 79 | }; |
| 80 | |
| 81 | export const updateWorkspaceMemberRole = async (workspaceId: number, userId: number, role: string) => { |
| 82 | await api.put(`/workspaces/${workspaceId}/members/${userId}/role`, { role }); |
no outgoing calls
no test coverage detected