Set the scan frequency
Sets how often every watched address of the website is scanned: every 3, 6, 12 or 24 hours, and every 6 hours until you set one. A shorter frequency brings the next scans forward, and a longer one never delays a scan already planned.
Requires the manager role on the website and the compliance plan feature.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
application/json- body
How often the scanner reads the website's addresses.
intervalHours*numberHow often the scanner reads every address of the website, in hours.
361224The addresses the scanner watches for security header changes, and how often.
application/json- response
intervalHours*|How often the scanner reads every address of the website.
urlsLimit*||How many addresses the website may have scanned on its plan, or null for no limit.
tracked*array<string>The HTTP response headers every scan compares, by lowercased name. Each cookie's security attributes, a policy set in a <meta> tag and the Location header of the redirects followed from the address are watched too.
addresses*array<>The addresses scanned, in the order they were added.
curl -X PUT 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers/settings' \ -H 'Content-Type: application/json' \ -d '{ "intervalHours": 6}'{ "intervalHours": 6, "urlsLimit": 10, "tracked": [ "content-security-policy", "strict-transport-security" ], "addresses": [ { "id": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03", "name": "Checkout", "url": "https://shop.example.com/checkout", "status": "ok", "lastError": "blocked", "lastHttpStatus": 200, "failingSince": "2026-11-02T15:15:00.000Z", "lastCheckedAt": "2026-11-02T15:15:00.000Z", "nextCheckAt": "2026-11-02T15:15:00.000Z", "firstCheckAt": "2026-11-02T15:15:00.000Z", "headersToReview": 2, "cookiesNotListed": 0, "headersNotListed": 0, "createdAt": "2026-10-01T08:00:00.000Z" } ]}