从 Marketplace 安装插件
从 LangBot Marketplace 安装插件。异步操作,POST 请求立即返回 `task_id`。若插件没有任何兼容当前 LangBot 的版本,异步任务直接失败(`allow_incompatible` 对此无效);`allow_incompatible` 仅用于跳过安装包 manifest 的兼容校验。发生兼容性错误时,可通过任务查询接口获取错误码 `plugin_incompatible_langbot_version` 及 `details`(包含 `current`、`min`、`max`、`status`: `"incompatible" | "invalid"`)。
从 LangBot Marketplace 安装插件。异步操作,POST 请求立即返回 task_id。若插件没有任何兼容当前 LangBot 的版本,异步任务直接失败(allow_incompatible 对此无效);allow_incompatible 仅用于跳过安装包 manifest 的兼容校验。发生兼容性错误时,可通过任务查询接口获取错误码 plugin_incompatible_langbot_version 及 details(包含 current、min、max、status: "incompatible" | "invalid")。
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/plugins/install/marketplace" \ -H "Content-Type: application/json" \ -d '{ "plugin_id": "kellz-dev/disaster-alert" }'{ "code": 0, "data": { "task_id": 0 }}