deleteTimeTemplates

Request Method: DELETE

Description: Deletes the specified Time Templates

URL: https://api.iovox.com:444/Rules?v=2&method=deleteTimeTemplates&time_template_labels=myLabel1&force=false

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
time_template_labelsA comma delimited list of all Time Template labels of the Time Template to be deleted
STRINGYES
forceTRUE/FALSE. If set to TRUE and the Time Template is used by a blocking rules, it will also remove the template from the rule. If set to FALSE and the Time Template is used by a blocking rules, 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
400force InvalidCorrect force to be TRUE or FALSE, or remove parameter to default to FALSE
400time_template_labels EmptyAdd one or more time_template_labels to the request
400time_template_label x of y does not existCorrect time_template_label x (item) of y (total) to a time_template_label that exists
400This time template is used by a blocking rule you can force the deletion by using force as TRUE. Blocking rule numbers are XRemove contact_id x (item) of y (total) or change rm_rules to TRUE
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 204 No Content