Update Plugin
curl --request PATCH \
--url https://agentgate.mynewapi.com/api/v1/verification/plugins/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": true,
"continueOnFail": true,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": True,
"continueOnFail": True,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
level: '<string>',
priority: 123,
enabled: true,
continueOnFail: true,
options: {},
webhookUrl: '<string>',
webhookTimeoutMs: 123
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/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_URL => "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'level' => '<string>',
'priority' => 123,
'enabled' => true,
'continueOnFail' => true,
'options' => [
],
'webhookUrl' => '<string>',
'webhookTimeoutMs' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}"
response = http.request(request)
puts response.read_bodyPlugins
Update Plugin
Update a verification plugin
PATCH
/
api
/
v1
/
verification
/
plugins
/
{id}
Update Plugin
curl --request PATCH \
--url https://agentgate.mynewapi.com/api/v1/verification/plugins/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": true,
"continueOnFail": true,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": True,
"continueOnFail": True,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
level: '<string>',
priority: 123,
enabled: true,
continueOnFail: true,
options: {},
webhookUrl: '<string>',
webhookTimeoutMs: 123
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/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_URL => "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'level' => '<string>',
'priority' => 123,
'enabled' => true,
'continueOnFail' => true,
'options' => [
],
'webhookUrl' => '<string>',
'webhookTimeoutMs' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/plugins/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}"
response = http.request(request)
puts response.read_bodyUpdate Plugin
Updates an existing verification plugin configuration.Built-in plugins (IDs starting with
built-in:) cannot be modified.Request
The plugin ID to update
Updated plugin name
Updated description
Updated verification level
Updated priority
Enable/disable the plugin
Updated continue-on-fail setting
Updated plugin options
Updated webhook URL
Updated webhook timeout
curl -X PATCH https://agentgate.mynewapi.com/api/v1/verification/plugins/custom:security-scan \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"priority": 50,
"options": {
"severity": "critical"
}
}'
Response
Returns the updated plugin configuration.Error Responses
Cannot Modify Built-in Plugin
{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Built-in plugins cannot be modified"
}
}
⌘I