MCPcopy Index your code
hub / github.com/codeaashu/claude-code / patch

Method patch

web/lib/api/client.ts:232–240  ·  view source on GitHub ↗
(path: string, body: unknown, opts?: RequestOptions)

Source from the content-addressed store, hash-verified

230 }
231
232 async patch<T>(path: string, body: unknown, opts?: RequestOptions): Promise<T> {
233 const res = await this.request(path, {
234 method: "PATCH",
235 body: JSON.stringify(body),
236 signal: opts?.signal,
237 });
238 if (!res.ok) throw await toApiError(res);
239 return res.json() as Promise<T>;
240 }
241
242 async delete(path: string, opts?: RequestOptions): Promise<void> {
243 const res = await this.request(path, {

Callers 3

updateSessionTitleFunction · 0.80
updateBridgeSessionTitleFunction · 0.80
updateGroveSettingsFunction · 0.80

Calls 2

requestMethod · 0.95
toApiErrorFunction · 0.85

Tested by

no test coverage detected