Skip to main content

Update the schedule of a Dynamic Analysis with the REST API

You can use the Dynamic Analysis API to update the schedule of an analysis.

To complete this task:

  1. Add the new schedule to the schedule property in the JSON file.

  2. Send the following request to get a list of analyses by name:

    http --auth-type=veracode_hmac GET "https://api.veracode.com/was/configservice/v1/analyses/"
  3. Send the following request, where name is the name of the analysis you want to edit:

    http --auth-type=veracode_hmac GET "https://api.veracode.com/was/configservice/v1/analyses?name={name}"
  4. Obtain the analysis_id of the analysis you want to edit.

  5. Send the following request to update the schedule:

    http --auth-type=veracode_hmac PUT "https://api.veracode.com/was/configservice/v1/analyses/{analysis_id}?method=PATCH" < input.json

    The API passes the JSON file that you populate with the necessary values as shown in this example payload:

    {
    "name": "Name-of-Your-Dynamic-Analysis",
    "schedule": {
    "start_date": "2020-09-26T02:00+00:00",
    "duration": {
    "length": 3,
    "unit": "DAY"
    }
    }
    }