Delete scan

POST https://daas.digicert.com/apicontroller/v1/scan/delete
Use this endpoint to delete the selected scan templates.

Example requests and responses

cURL

curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/scan/delete' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"accountId":5153184,"divisionIds":[677793],"scanDefIds":[293514],"reason":"Duplicate scan"}'

200 OK

[
    {
        "error": null,
        "data": {
            "id": "293514",
            "message": "Scan delete successful"
        }
    }
]

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
divisionIdrequiredarrayDivision ID.
scanDefIdsrequiredarrayList of unique IDs for scan templates to delete.
reasonrequiredstringReason for deleting the scan.

Response parameters

NameTypeDescription
errorobjectIncludes the error code if any.
dataobjectObject container for response.
.. idstringID associated with the scan, also known as the  surveyDefId.
.. messagestringMessage with additional information about the request.