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
Parameter | Description | Default Value | Data Type | Mandatory |
v | API version to use | INTEGER | YES | |
time_template_labels | A comma delimited list of all Time Template labels of the Time Template to be deleted | STRING | YES | |
force | TRUE/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 thrown | FALSE | BOOLEAN | NO |
Result¶
Error Result¶
HTTP Code | Error String | Resolution |
400 | API Version Empty | Add a value for the v parameter in the query string |
400 | API Version Invalid | Correct v parameter |
400 | Request Method must be DELETE. x attempted | Switch request method x to DELETE |
400 | force Invalid | Correct force to be TRUE or FALSE, or remove parameter to default to FALSE |
400 | time_template_labels Empty | Add one or more time_template_labels to the request |
400 | time_template_label x of y does not exist | Correct time_template_label x (item) of y (total) to a time_template_label that exists |
400 | This time template is used by a blocking rule you can force the deletion by using force as TRUE. Blocking rule numbers are X | Remove contact_id x (item) of y (total) or change rm_rules to TRUE |
500 | Internal Server Error | Retry later |