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

Function create

ui/src/composables/useAsterClient.ts:51–58  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

49 return response.json();
50 },
51 async create(data: any) {
52 const response = await fetch(`${baseUrl}/v1/agents`, {
53 method: "POST",
54 headers: buildHeaders(),
55 body: JSON.stringify(data),
56 });
57 return response.json();
58 },
59 async update(id: string, data: any) {
60 const response = await fetch(`${baseUrl}/v1/agents/${id}`, {
61 method: "PUT",

Callers

nothing calls this directly

Calls 1

buildHeadersFunction · 0.85

Tested by

no test coverage detected