Update a plugin
curl --request PUT \
--url http://localhost:9601/workspaces/{ws_id}/plugins/{id} \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
'import requests
url = "http://localhost:9601/workspaces/{ws_id}/plugins/{id}"
payload = {
"id": "<string>",
"name": "<string>",
"enabled": True,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
enabled: true,
endpoint_id: '<string>',
source_id: '<string>',
config: {},
metadata: {}
})
};
fetch('http://localhost:9601/workspaces/{ws_id}/plugins/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9601",
CURLOPT_URL => "http://localhost:9601/workspaces/{ws_id}/plugins/{id}",
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([
'id' => '<string>',
'name' => '<string>',
'enabled' => true,
'endpoint_id' => '<string>',
'source_id' => '<string>',
'config' => [
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:9601/workspaces/{ws_id}/plugins/{id}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:9601/workspaces/{ws_id}/plugins/{id}")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9601/workspaces/{ws_id}/plugins/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {},
"created_at": 123,
"updated_at": 123
}Plugin
Update a plugin
PUT
/
workspaces
/
{ws_id}
/
plugins
/
{id}
Update a plugin
curl --request PUT \
--url http://localhost:9601/workspaces/{ws_id}/plugins/{id} \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
'import requests
url = "http://localhost:9601/workspaces/{ws_id}/plugins/{id}"
payload = {
"id": "<string>",
"name": "<string>",
"enabled": True,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
enabled: true,
endpoint_id: '<string>',
source_id: '<string>',
config: {},
metadata: {}
})
};
fetch('http://localhost:9601/workspaces/{ws_id}/plugins/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9601",
CURLOPT_URL => "http://localhost:9601/workspaces/{ws_id}/plugins/{id}",
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([
'id' => '<string>',
'name' => '<string>',
'enabled' => true,
'endpoint_id' => '<string>',
'source_id' => '<string>',
'config' => [
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:9601/workspaces/{ws_id}/plugins/{id}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:9601/workspaces/{ws_id}/plugins/{id}")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9601/workspaces/{ws_id}/plugins/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"enabled\": true,\n \"endpoint_id\": \"<string>\",\n \"source_id\": \"<string>\",\n \"config\": {},\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {},
"created_at": 123,
"updated_at": 123
}Body
application/json
⌘I