メインコンテンツへスキップ
POST
/
api
/
v1
/
plugins
/
install
/
github
Install Plugin from GitHub
curl --request POST \
  --url http://localhost:5300/api/v1/plugins/install/github \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset_url": "<string>",
  "owner": "<string>",
  "repo": "<string>",
  "release_tag": "<string>"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "task_id": "<string>"
  }
}

承認

Authorization
string
header
必須

Bearer token authentication. Can be either a user JWT token or an API key. Example: Authorization: Bearer <token_or_key>

ボディ

application/json
asset_url
string
必須

GitHub Release asset download URL

owner
string

Repository owner

repo
string

Repository name

release_tag
string

Release tag

レスポンス

200 - application/json

Installation task created

code
integer
:

0

msg
string
:

"ok"

data
object