Bulk delete issues
curl --request DELETE \
--url https://neo.api.projectdiscovery.io/api/v1/issues/bulk \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"affected_host": "<string>",
"assignee": "<string>",
"component": "<string>",
"confidence": [],
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"cve_id": "<string>",
"cwe_id": "<string>",
"host": "<string>",
"ip_address": "<string>",
"max_cvss": 123,
"min_affected": 123,
"min_cvss": 123,
"port": 123,
"priority": [],
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"search": "<string>",
"severity": [],
"source": [
"<string>"
],
"status": [],
"tags": [
"<string>"
],
"target": "<string>",
"target_type": "<string>",
"task_id": "<string>",
"template_id": "<string>",
"type": []
},
"issue_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://neo.api.projectdiscovery.io/api/v1/issues/bulk"
payload = {
"filters": {
"affected_host": "<string>",
"assignee": "<string>",
"component": "<string>",
"confidence": [],
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"cve_id": "<string>",
"cwe_id": "<string>",
"host": "<string>",
"ip_address": "<string>",
"max_cvss": 123,
"min_affected": 123,
"min_cvss": 123,
"port": 123,
"priority": [],
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"search": "<string>",
"severity": [],
"source": ["<string>"],
"status": [],
"tags": ["<string>"],
"target": "<string>",
"target_type": "<string>",
"task_id": "<string>",
"template_id": "<string>",
"type": []
},
"issue_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
affected_host: '<string>',
assignee: '<string>',
component: '<string>',
confidence: [],
created_after: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
cve_id: '<string>',
cwe_id: '<string>',
host: '<string>',
ip_address: '<string>',
max_cvss: 123,
min_affected: 123,
min_cvss: 123,
port: 123,
priority: [],
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
search: '<string>',
severity: [],
source: ['<string>'],
status: [],
tags: ['<string>'],
target: '<string>',
target_type: '<string>',
task_id: '<string>',
template_id: '<string>',
type: []
},
issue_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://neo.api.projectdiscovery.io/api/v1/issues/bulk', 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://neo.api.projectdiscovery.io/api/v1/issues/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'affected_host' => '<string>',
'assignee' => '<string>',
'component' => '<string>',
'confidence' => [
],
'created_after' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'cve_id' => '<string>',
'cwe_id' => '<string>',
'host' => '<string>',
'ip_address' => '<string>',
'max_cvss' => 123,
'min_affected' => 123,
'min_cvss' => 123,
'port' => 123,
'priority' => [
],
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'search' => '<string>',
'severity' => [
],
'source' => [
'<string>'
],
'status' => [
],
'tags' => [
'<string>'
],
'target' => '<string>',
'target_type' => '<string>',
'task_id' => '<string>',
'template_id' => '<string>',
'type' => [
]
],
'issue_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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 := "https://neo.api.projectdiscovery.io/api/v1/issues/bulk"
payload := strings.NewReader("{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://neo.api.projectdiscovery.io/api/v1/issues/bulk")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://neo.api.projectdiscovery.io/api/v1/issues/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"deleted": 123,
"matched": 123,
"issue_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}Issues
Bulk delete issues
Delete multiple issues by IDs, filters, or both.
At least one of issue_ids or filters is required. When both are provided,
only issues matching both inputs are deleted.
DELETE
/
api
/
v1
/
issues
/
bulk
Bulk delete issues
curl --request DELETE \
--url https://neo.api.projectdiscovery.io/api/v1/issues/bulk \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"affected_host": "<string>",
"assignee": "<string>",
"component": "<string>",
"confidence": [],
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"cve_id": "<string>",
"cwe_id": "<string>",
"host": "<string>",
"ip_address": "<string>",
"max_cvss": 123,
"min_affected": 123,
"min_cvss": 123,
"port": 123,
"priority": [],
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"search": "<string>",
"severity": [],
"source": [
"<string>"
],
"status": [],
"tags": [
"<string>"
],
"target": "<string>",
"target_type": "<string>",
"task_id": "<string>",
"template_id": "<string>",
"type": []
},
"issue_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://neo.api.projectdiscovery.io/api/v1/issues/bulk"
payload = {
"filters": {
"affected_host": "<string>",
"assignee": "<string>",
"component": "<string>",
"confidence": [],
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"cve_id": "<string>",
"cwe_id": "<string>",
"host": "<string>",
"ip_address": "<string>",
"max_cvss": 123,
"min_affected": 123,
"min_cvss": 123,
"port": 123,
"priority": [],
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"search": "<string>",
"severity": [],
"source": ["<string>"],
"status": [],
"tags": ["<string>"],
"target": "<string>",
"target_type": "<string>",
"task_id": "<string>",
"template_id": "<string>",
"type": []
},
"issue_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
affected_host: '<string>',
assignee: '<string>',
component: '<string>',
confidence: [],
created_after: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
cve_id: '<string>',
cwe_id: '<string>',
host: '<string>',
ip_address: '<string>',
max_cvss: 123,
min_affected: 123,
min_cvss: 123,
port: 123,
priority: [],
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
search: '<string>',
severity: [],
source: ['<string>'],
status: [],
tags: ['<string>'],
target: '<string>',
target_type: '<string>',
task_id: '<string>',
template_id: '<string>',
type: []
},
issue_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://neo.api.projectdiscovery.io/api/v1/issues/bulk', 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://neo.api.projectdiscovery.io/api/v1/issues/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'affected_host' => '<string>',
'assignee' => '<string>',
'component' => '<string>',
'confidence' => [
],
'created_after' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'cve_id' => '<string>',
'cwe_id' => '<string>',
'host' => '<string>',
'ip_address' => '<string>',
'max_cvss' => 123,
'min_affected' => 123,
'min_cvss' => 123,
'port' => 123,
'priority' => [
],
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'search' => '<string>',
'severity' => [
],
'source' => [
'<string>'
],
'status' => [
],
'tags' => [
'<string>'
],
'target' => '<string>',
'target_type' => '<string>',
'task_id' => '<string>',
'template_id' => '<string>',
'type' => [
]
],
'issue_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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 := "https://neo.api.projectdiscovery.io/api/v1/issues/bulk"
payload := strings.NewReader("{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://neo.api.projectdiscovery.io/api/v1/issues/bulk")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://neo.api.projectdiscovery.io/api/v1/issues/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"affected_host\": \"<string>\",\n \"assignee\": \"<string>\",\n \"component\": \"<string>\",\n \"confidence\": [],\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"cve_id\": \"<string>\",\n \"cwe_id\": \"<string>\",\n \"host\": \"<string>\",\n \"ip_address\": \"<string>\",\n \"max_cvss\": 123,\n \"min_affected\": 123,\n \"min_cvss\": 123,\n \"port\": 123,\n \"priority\": [],\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"search\": \"<string>\",\n \"severity\": [],\n \"source\": [\n \"<string>\"\n ],\n \"status\": [],\n \"tags\": [\n \"<string>\"\n ],\n \"target\": \"<string>\",\n \"target_type\": \"<string>\",\n \"task_id\": \"<string>\",\n \"template_id\": \"<string>\",\n \"type\": []\n },\n \"issue_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"deleted": 123,
"matched": 123,
"issue_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}Body
application/json
At least one of issue_ids or filters is required. When both are provided, only issues matching both inputs are deleted.
⌘I

