DELETE /API/ContactGroups/Update/?ContactID=[TestID]

Basic Intro

Using the HTTP header DELETE will remove the contact group from the database. Their will be no confirmation nor will you be able to revert the deletion once it has been made.

Parameters
ContactID: a Int representation of a contact group (as provided by List Contact Groups). Can be sent as GET or as part of POST body
Example Request
curl -H "API: [APIKey]" -H "Username: [Username]" -X DELETE https://app.statuscake.com/API/ContactGroups/Update/?ContactID=241

Example Output

The output is returned as a json array

{
    "ContactID": 6735, // The ID of the contact group that has been deleted
    "Affected": 1, // The number of rows deleted
    "Success": true, // If the deletion was a success or not
    "Message": "This Contact Group Has Been Deleted. It can not be recovered."
}

Error Messages

If a ContactID is not connected to the account that API key has been provided for then the following error message will be presented

{
    "ErrNo": 1,
    "Error": "REQUEST[ContactID] provided not linked to this account"
}