/api/2.0/fo/schedule/scan/?action=update
[POST]
Update scan schedule in the user's account.
During an update request you must specify target_from=assets when fqdn is specified in the same request. This is true for vulnerability scans and CertView type vulnerability scans. When fqdn is not specified during an update request for a scheduled scan that already has fqdn defined, we will keep the existing value.
Parameter |
Description |
action=update |
(Required) |
echo_request={0|1} |
(Optional) Specify 1 to view (echo) input parameters in the XML output. By default these are not included. |
id={value} |
(Required) ID of schedule you want to update. |
{scan parameters} |
Click here to view scan parameters |
{scan schedule parameters} |
Click here to view scan schedule parameters |
API request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -X "POST" -d "action=update&id=146754&pause_after_hours=0&pause_after_mins=15&resume_in_days=5&resume_in_hours=5" "https://qualysapi.qualys.com/api/2.0/fo/schedule/scan/"
XML output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2018-05-14T11:57:42Z</DATETIME>
<TEXT>Edit scheduled Scan Completed successfully</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>146754</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
<platform API server>/api/2.0/simple_return.dtd