Skip to content

Update Asset Schedule🔗

This article reviews how to update an asset schedule through the REST API with the included CURL command.

First, ensure you have the necessary API credentials; start by creating a new API Client ID and use it through the built-in Swagger UI to fetch back the authentication token to use in your scripted request. For more information, see Creating Public API Clients.

curl -X PATCH -k "https://<INSTANCE_ID>.vdr.secureworks.com/api/v2/servers/<SERVER_ID>" \
-H "accept: application/json" -H "authorization: Bearer <YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"id": "<SERVER_ID>", "kind": "server", "schedule": <SCHEDULE_CONFIG>, "fields": "schedule"}'

Be sure to replace the following variables:

  • YOUR_TOKEN
  • INSTANCE_ID
  • SERVER_ID
  • SCHEDULE_CONFIG

Example for a Monthly Scan Schedule (SCHEDULE_CONFIG)🔗

{
  "period": "monthly",
  "monthday": "15",
  "retryCount": 1,
  "startTime": "03:00"
  "killTime": "never",
}