deleteContacts

Request Method: DELETE

Description: Deletes the specified contacts

URL: https://api.iovox.com:444/Contacts?v=3&method=deleteContacts&contact_ids=100A,200B

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
contact_idsA comma delimited list of all contact ids of the contacts to be deleted
STRINGYES
rm_rulesTRUE/FALSE. If set to TRUE and the contact's details form part of a custom Rule Template the Template will be deleted and removed from any Links it is attached to. Also, if the contact's details have been used to fix a variable rule the related template will be detached from any Links using these details. If set to FALSE and the contact's details are used in a Rule Template or to fix a variable Rule, an error will be thrownFALSEBOOLEANNO
rm_if_userTRUE/FALSE. If set to TRUE and the contact has a user account then the user will also be removed. If set to FALSE and the contact has a user account, an error will be thrownFALSEBOOLEANNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be DELETE. x attemptedSwitch request method x to DELETE
400Remove If User InvalidCorrect rm_if_user to be TRUE or FALSE, or remove parameter to default to FALSE
400Contact IDs EmptyAdd one or more contact_ids to the request
400Contact ID x of y does not existCorrect contact_id x (item) of y (total) to a contact_id that exists
400Contact x of y is used in Rules or Rule TemplatesRemove contact_id x (item) of y (total) or change rm_rules to TRUE
400Contact x of y has a user accountRemove contact_id x (item) of y (total) or change rm_if_user to TRUE
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 204 No Content