Code Samples #
Copy
curl --request DELETE \
--url 'https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore' \
--header 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_TOKEN'
}
});
const data = await response.json();
console.log(data);
import requests
headers = {
"Authorization": "Bearer YOUR_TOKEN"
}
response = requests.delete("https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore", headers=headers)
print(response.json())
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_TOKEN'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
using System.Net.Http;
var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore");
request.Headers.Add("Authorization", "Bearer YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://app.xcloud.host/api/v1/sites/{uuid}/vulnerabilities/{vulnerabilityUuid}/ignore"))
.header("Authorization", "Bearer YOUR_TOKEN")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Response #
Copy
{
"success": true,
"message": "Vulnerability unignored.",
"data": {
"vulnerability": {
"uuid": "8c5d7e8a-1234-4abc-9def-1234567890ab",
"source": "wordfence",
"slug": "woocommerce",
"ignored": false
},
"site": {
"uuid": "1a2b3c4d-5e6f-7890-abcd-1234567890ef",
"name": "my-wordpress-site"
}
}
}
{
"success": false,
"message": "Unauthenticated.",
"data": null
}
{
"success": false,
"message": "This action is unauthorized. Your token is missing the required scope.",
"data": null
}
{
"success": false,
"message": "Not found.",
"data": null
}
{
"success": false,
"message": "The given data was invalid.",
"data": null,
"errors": {
"domain": [
"The domain field is required when mode is live."
]
}
}
Clears the ignored flag on a single vulnerability for this site. Idempotent. Requires the write:sites scope and the site:manage-update Team permission.
Path Parameters #
| Name | Type | Required | Description |
|---|---|---|---|
uuid | string (uuid) | Required | UUID of the site |
vulnerabilityUuid | string (uuid) | Required | UUID of the vulnerability (either a Wordfence `vulnerability_sites` row or a Patchstack `patchstack_vulnerability_sites` row). The UUID is returned by `GET /sites/{uuid}/vulnerabilities` as `item.uuid`. |
Responses #
200 — Vulnerability unignored #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional | |
data | object | Optional | |
data.vulnerability | object | Required | |
data.vulnerability.uuid | string (uuid) | Required | |
data.vulnerability.source | string | Required | Allowed: wordfence, patchstack |
data.vulnerability.slug | string | Optional | |
data.vulnerability.ignored | boolean | Required | |
data.site | object | Required | |
data.site.uuid | string (uuid) | Optional | |
data.site.name | string | Optional |
Example 200 response
Copy
{
"success": true,
"message": "Vulnerability unignored.",
"data": {
"vulnerability": {
"uuid": "8c5d7e8a-1234-4abc-9def-1234567890ab",
"source": "wordfence",
"slug": "woocommerce",
"ignored": false
},
"site": {
"uuid": "1a2b3c4d-5e6f-7890-abcd-1234567890ef",
"name": "my-wordpress-site"
}
}
}
401 — Missing or invalid authentication token #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 401 response
Copy
{
"success": false,
"message": "Unauthenticated.",
"data": null
}
403 — Token lacks the required scope #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 403 response
Copy
{
"success": false,
"message": "This action is unauthorized. Your token is missing the required scope.",
"data": null
}
404 — Resource not found or not accessible to your Team #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 404 response
Copy
{
"success": false,
"message": "Not found.",
"data": null
}
422 — Request validation failed #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional | |
errors | object | Optional |
Example 422 response
Copy
{
"success": false,
"message": "The given data was invalid.",
"data": null,
"errors": {
"domain": [
"The domain field is required when mode is live."
]
}
}
