Skip to main content
POST
/
api
/
v1
/
plugins
/
install
/
local
Install Plugin from Local File
curl --request POST \
  --url http://localhost:5300/api/v1/plugins/install/local \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "task_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

Plugin package file (.lbpkg format)

Response

200 - application/json

Installation task created

code
integer
Example:

0

msg
string
Example:

"ok"

data
object