Delete a saved scan account
curl --request DELETE \
--url https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "<string>",
"revokedAt": "2023-11-07T05:31:56Z"
}Security Penetration Tests
Delete a saved scan account | Comp AI API
Soft-deletes a saved scan account so it can no longer be used by a run; the label stays for past reports. Runs already using it are unaffected.
DELETE
/
v1
/
security-penetration-tests
/
accounts
/
{id}
Delete a saved scan account
curl --request DELETE \
--url https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/security-penetration-tests/accounts/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "<string>",
"revokedAt": "2023-11-07T05:31:56Z"
}Headers
Was this page helpful?

