MCPcopy Create free account
hub / github.com/Botloader/botloader / addPluginImage

Method addPluginImage

frontend-common/src/api_client.ts:257–262  ·  view source on GitHub ↗
(pluginId: number, data: any)

Source from the content-addressed store, hash-verified

255
256 // data should be a FormData, but this wrapper don't have DOM libs
257 async addPluginImage(pluginId: number, data: any) {
258 return await this.post(`/api/user/plugins/${pluginId}/images`, {
259 kind: "custom",
260 body: data
261 })
262 }
263
264 async deletePluginImage(pluginId: number, imageId: string) {
265 return await this.delete(`/api/user/plugins/${pluginId}/images/${imageId}`)

Callers 1

saveFunction · 0.80

Calls 1

postMethod · 0.95

Tested by

no test coverage detected