Update pentest settings
PUT
/v1/security-penetration-tests/settings
const url = 'https://api.varman.io/v1/security-penetration-tests/settings';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"aiAssistedEnabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.varman.io/v1/security-penetration-tests/settings \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "aiAssistedEnabled": true }'Turns AI-assisted penetration tests on or off for the organization. When on, scanned page content and findings are sent to an AI provider.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Organization ID (required for session auth, optional for API key auth)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
aiAssistedEnabled
required
Allow AI-assisted pentests. When on, page content and findings from scanned targets are sent to an AI provider to validate findings, plan follow-up probes and write impact and fix guidance.
boolean
Example
trueResponses
Section titled “Responses”Media typeapplication/json
object
aiAssistedEnabled
required
Whether AI-assisted pentests are allowed for the organization.
boolean
Example
{ "aiAssistedEnabled": false}