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

Function createScript

client/src/api/index.tsx:175–183  ·  view source on GitHub ↗
(collectionId: number, data: ScriptData)

Source from the content-addressed store, hash-verified

173 fetch(BASE_PATH + `api/scripts/${id}`);
174
175const createScript = (collectionId: number, data: ScriptData): Promise<Response> =>
176 fetch(BASE_PATH + 'api/scripts', {
177 method: 'POST',
178 headers: DEFAULT_HEADERS,
179 body: JSON.stringify({
180 collectionId,
181 data,
182 }),
183 });
184
185const updateScript = (script: Script | CurrentScript): Promise<Response> =>
186 fetch(BASE_PATH + 'api/scripts', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected