MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / patch

Method patch

frontend/src/lib/api/apiClient.ts:168–178  ·  view source on GitHub ↗
(
    endpoint: string,
    data?: any,
    options?: RequestOptions
  )

Source from the content-addressed store, hash-verified

166 }
167
168 async patch<T>(
169 endpoint: string,
170 data?: any,
171 options?: RequestOptions
172 ): Promise<T> {
173 return this.request<T>(endpoint, {
174 ...options,
175 method: 'PATCH',
176 body: data ? JSON.stringify(data) : undefined,
177 });
178 }
179
180 async delete<T>(endpoint: string, options?: RequestOptions): Promise<T> {
181 return this.request<T>(endpoint, { ...options, method: 'DELETE' });

Callers 3

updateProfileMethod · 0.80
updateSettingsMethod · 0.80
updateMemberRoleFunction · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected