Add delete_folder method to template folder api client

This commit is contained in:
Pea Tyczynska
2018-11-13 16:20:18 +00:00
parent 4520065af4
commit b5c78dc552
2 changed files with 21 additions and 0 deletions

View File

@@ -50,5 +50,9 @@ class TemplateFolderAPIClient(NotifyAdminAPIClient):
{"name": name}
)
@cache.delete('service-{service_id}-template-folders')
def delete_template_folder(self, service_id, template_folder_id):
self.post('/service/{}/template-folder/{}/delete'.format(service_id, template_folder_id))
template_folder_api_client = TemplateFolderAPIClient()