PUT
Create or replace an asset's rescan schedule

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json
enabled
boolean
required
frequency
enum<string>
default:daily
Available options:
hourly,
daily,
weekly
scanners
string[]
timezone
string

IANA time zone whose clock a daily or weekly schedule keeps, so it runs at the same local time through daylight saving. Absent keeps the schedule's own, or UTC on a new one. An hourly schedule runs hourly whatever the zone. 400 for a name that is not a zone.

Example:

"Europe/Berlin"

Response

One schedule.

The response is of type object.