MCPcopy
hub / github.com/continuedev/continue / put

Function put

extensions/cli/src/util/apiClient.ts:152–162  ·  view source on GitHub ↗
(
  endpoint: string,
  body?: Record<string, unknown> | string,
  headers?: Record<string, string>,
)

Source from the content-addressed store, hash-verified

150 * Convenience function for PUT requests
151 */
152export async function put<T = any>(
153 endpoint: string,
154 body?: Record<string, unknown> | string,
155 headers?: Record<string, string>,
156): Promise<ApiResponse<T>> {
157 return makeAuthenticatedRequest<T>(endpoint, {
158 method: "PUT",
159 body,
160 headers,
161 });
162}
163
164/**
165 * Convenience function for DELETE requests

Callers 1

apiClient.test.tsFile · 0.85

Calls 1

makeAuthenticatedRequestFunction · 0.85

Tested by

no test coverage detected