Skip to main content
POST
/
v1
/
scans
/
config
/
exclude
Add excluded templates and targets
curl --request POST \
  --url https://api.projectdiscovery.io/v1/scans/config/exclude \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "values": [
    "<string>"
  ],
  "scan_ids": [
    "<string>"
  ],
  "enumeration_ids": [
    "<string>"
  ],
  "exclude_type": "scan_target"
}'
{
  "message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Body

application/json
values
string[]
required
exclude_type
enum<string>
required
Available options:
scan_target,
template,
enumeration_target
scan_ids
string[]

Optional scan IDs to scope these rules to specific scans. If not provided, rules apply globally.

enumeration_ids
string[]

Optional enumeration IDs to scope these rules to specific enumerations. If not provided, rules apply globally.

Response

Example response

message
string
required