MCPcopy Index your code
hub / github.com/coder/coder / patchGroup

Function patchGroup

site/src/api/queries/groups.ts:180–190  ·  view source on GitHub ↗
(queryClient: QueryClient, organization: string)

Source from the content-addressed store, hash-verified

178};
179
180export const patchGroup = (queryClient: QueryClient, organization: string) => {
181 return {
182 mutationFn: ({
183 groupId,
184 ...request
185 }: PatchGroupRequest & { groupId: string }) =>
186 API.patchGroup(groupId, request),
187 onSuccess: async (updatedGroup: Group) =>
188 invalidateGroup(queryClient, organization, updatedGroup.name),
189 };
190};
191
192export const deleteGroup = (queryClient: QueryClient, organization: string) => {
193 return {

Callers 1

GroupSettingsPageFunction · 0.90

Calls 2

invalidateGroupFunction · 0.85
patchGroupMethod · 0.80

Tested by

no test coverage detected