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

Function moveScript

client/src/api/index.tsx:192–204  ·  view source on GitHub ↗
(
  id: number,
  newRank: number,
  newCollectionId: number,
)

Source from the content-addressed store, hash-verified

190 });
191
192const moveScript = (
193 id: number,
194 newRank: number,
195 newCollectionId: number,
196): Promise<Response> =>
197 fetch(BASE_PATH + `api/scripts/${id}/move`, {
198 method: 'POST',
199 headers: DEFAULT_HEADERS,
200 body: JSON.stringify({
201 newRank,
202 newCollectionId,
203 }),
204 });
205
206const deleteScript = (id: number): Promise<Response> =>
207 fetch(BASE_PATH + `api/scripts/${id}`, {

Callers 2

dropFunction · 0.50
dropFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected