跳转到主要内容
POST
/
api
/
v1
/
plugins
/
install
/
marketplace
从 Marketplace 安装插件
curl --request POST \
  --url http://localhost:5300/api/v1/plugins/install/marketplace \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "plugin_id": "kellz-dev/disaster-alert"
}
'
{
  "code": 0,
  "data": {
    "task_id": 123
  }
}

授权

X-API-Key
string
header
必填

请求体

application/json
plugin_id
string
必填

Marketplace 插件 ID(author/name 格式)

示例:

"kellz-dev/disaster-alert"

响应

200 - application/json

成功

code
integer
示例:

0

data
object