Delete key

POST https://daas.digicert.com/apicontroller/v1/key/delete
Use this endpoint to permanently delete one or more SSH keys from the scan.

Example requests and responses

cURL

curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/key/delete' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw 
'{
	"accountId": 5153289,
	"divisionIds": [678010],
	"keyNameList": ["2500c5a5e2524ad63f30e6250538f4c7","3c6d5c995db5c6255ad3788ed2f57a01"]
}'

200 OK

{
	"error": null,
	"data": "success"
}

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
divisionIdsrequiredarrayUser’s division IDs.
keyNameListrequiredarrayList of one or more strings. Each string is the name of a key to delete.

Response parameters

NameTypeDescription
errorobjectIncludes error codes, if any.
datastringMessage with information about the request.