PATCH
/
v1
/
scans
/
{scan_id}
/
config
curl --request PATCH \
  --url https://api.projectdiscovery.io/v1/scans/{scan_id}/config \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "targets": [
    "<string>"
  ],
  "assets_lists": [
    "<string>"
  ],
  "public_templates": [
    "<string>"
  ],
  "early_templates": [
    "<string>"
  ],
  "template_urls": [
    "<string>"
  ],
  "template_ids": [
    "<string>"
  ],
  "scan_config_ids": [
    "<string>"
  ],
  "report_config_ids": [
    "<string>"
  ],
  "alerting_config_ids": [
    "<string>"
  ],
  "enumeration_ids": [
    {
      "id": "<string>",
      "types": [
        "hosts"
      ]
    }
  ]
}'
{
  "ok": true
}

Authorizations

X-API-Key
string
headerrequired

Path Parameters

scan_id
string
required

Query Parameters

update_type
enum<string>
default: append

Update type: append or replace

Available options:
append,
replace

Body

application/json
targets
string[]
assets_lists
string[]
public_templates
string[]
early_templates
string[]
template_urls
string[]
template_ids
string[]
scan_config_ids
string[]
report_config_ids
string[]
alerting_config_ids
string[]
enumeration_ids
object[]

Response

200 - application/json
ok
boolean