MCPcopy Create free account
hub / github.com/astercloud/aster / update

Function update

ui/src/composables/useAsterClient.ts:59–66  ·  view source on GitHub ↗
(id: string, data: any)

Source from the content-addressed store, hash-verified

57 return response.json();
58 },
59 async update(id: string, data: any) {
60 const response = await fetch(`${baseUrl}/v1/agents/${id}`, {
61 method: "PUT",
62 headers: buildHeaders(),
63 body: JSON.stringify(data),
64 });
65 return response.json();
66 },
67 async delete(id: string) {
68 const response = await fetch(`${baseUrl}/v1/agents/${id}`, {
69 method: "DELETE",

Callers

nothing calls this directly

Calls 1

buildHeadersFunction · 0.85

Tested by

no test coverage detected