MCPcopy
hub / github.com/AstrBotDevs/AstrBot / update

Function update

dashboard/src/api/v1.ts:349–365  ·  view source on GitHub ↗
(
    configId: string,
    config: OpenConfig,
    requestConfig?: AxiosRequestConfig,
  )

Source from the content-addressed store, hash-verified

347 );
348 },
349 update(
350 configId: string,
351 config: OpenConfig,
352 requestConfig?: AxiosRequestConfig,
353 ) {
354 return typed<OpenConfig>(
355 openApiV1.updateConfigProfileContent(
356 generatedOptions(
357 {
358 path: { config_id: configId },
359 body: config,
360 },
361 requestConfig,
362 ),
363 ),
364 );
365 },
366 rename(configId: string, name: string | null) {
367 return typed<OpenConfig>(
368 openApiV1.renameConfigProfile({

Callers

nothing calls this directly

Calls 2

typedFunction · 0.85
generatedOptionsFunction · 0.85

Tested by

no test coverage detected