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

Method put

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

Source from the content-addressed store, hash-verified

154 }
155
156 async put<T>(
157 endpoint: string,
158 data?: any,
159 options?: RequestOptions
160 ): Promise<T> {
161 return this.request<T>(endpoint, {
162 ...options,
163 method: 'PUT',
164 body: data ? JSON.stringify(data) : undefined,
165 });
166 }
167
168 async patch<T>(
169 endpoint: string,

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected