Skip to main content
PATCH
/
project
/
{projectId}
/
results
/
batch
Batch update multiple vulnerabilities
curl --request PATCH \
  --url https://api-eu.cybedefend.com/project/{projectId}/results/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "vulnerabilityId": "69da14be-ce56-46d1-8da0-25927da0876f",
      "status": "not_exploitable",
      "comment": "Reviewed and marked as not exploitable"
    },
    {
      "vulnerabilityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "status": "resolved"
    }
  ]
}
'
{
  "projectId": "30244c51-b01b-4306-a1e5-ade3f87303ff",
  "totalCount": 5,
  "successCount": 4,
  "failureCount": 1,
  "results": [
    {
      "vulnerabilityId": "69da14be-ce56-46d1-8da0-25927da0876f",
      "success": true
    },
    {
      "vulnerabilityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "success": false,
      "error": "Vulnerability not found"
    }
  ]
}

Path Parameters

projectId
string<uuid>
required

Body

application/json
items
object[]
required

List of vulnerabilities to update. Each item must contain vulnerabilityId and at least one field to update (status, priority, or comment).

Required array length: 1 - 100 elements
Example:
[
{
"vulnerabilityId": "69da14be-ce56-46d1-8da0-25927da0876f",
"status": "not_exploitable",
"comment": "Reviewed and marked as not exploitable"
},
{
"vulnerabilityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "resolved"
}
]

Response

Batch update results with success/failure per vulnerability

projectId
string<uuid>
required

Project unique identifier

Example:

"30244c51-b01b-4306-a1e5-ade3f87303ff"

totalCount
number
required

Total number of vulnerabilities processed

Example:

5

successCount
number
required

Number of successful updates

Example:

4

failureCount
number
required

Number of failed updates

Example:

1

results
object[]
required

Detailed results per vulnerability

Example:
[
{
"vulnerabilityId": "69da14be-ce56-46d1-8da0-25927da0876f",
"success": true
},
{
"vulnerabilityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"success": false,
"error": "Vulnerability not found"
}
]