MCPcopy Create free account
hub / github.com/EsperoTech/yaade / updateCollection

Function updateCollection

client/src/api/index.tsx:163–170  ·  view source on GitHub ↗
(
  collection: Collection | CurrentCollection,
)

Source from the content-addressed store, hash-verified

161 });
162
163const updateCollection = (
164 collection: Collection | CurrentCollection,
165): Promise<Response> =>
166 fetch(BASE_PATH + 'api/collection', {
167 method: 'PUT',
168 headers: DEFAULT_HEADERS,
169 body: JSON.stringify(collection),
170 });
171
172const getScript = (id: number): Promise<Response> =>
173 fetch(BASE_PATH + `api/scripts/${id}`);

Callers 1

DashboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected