Skip to main content
PUT
/
connectors
/
plugins
Install a plugin
import requests

url = "https://{FUSION HOST}/api/connectors/plugins"

payload = "<string>"
headers = {"Content-Type": "application/zip"}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.put("https://{FUSION HOST}/api/connectors/plugins")
.header("Content-Type", "application/zip")
.body("\"<string>\"")
.asString();
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/zip'},
body: JSON.stringify('<string>')
};

fetch('https://{FUSION HOST}/api/connectors/plugins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
require 'uri'
require 'net/http'

url = URI("https://{FUSION HOST}/api/connectors/plugins")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/zip'
request.body = "\"<string>\""

response = http.request(request)
puts response.read_body
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://{FUSION HOST}/api/connectors/plugins"

payload := strings.NewReader("\"<string>\"")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Content-Type", "application/zip")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION HOST}/api/connectors/plugins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/zip"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
curl --request PUT \
--url https://{FUSION HOST}/api/connectors/plugins \
--header 'Content-Type: application/zip' \
--data '"<string>"'
{
  "pluginId": "lucidworks.slack",
  "status": {
    "action": "INSTALL",
    "status": "SUCCESS",
    "message": "Plugin lucidworks.slack was installed successfully."
  }
}

Body

application/zip

The body is of type file.

Response

200 - application/json

OK

pluginId
string

The ID of the connector plugin.

Example:

"lucidworks.web-v2"

status
object

The action taken and its final status.