diff --git a/zendesk/endpoints_v2.py b/zendesk/endpoints_v2.py index 52e7543..a0e3f9d 100644 --- a/zendesk/endpoints_v2.py +++ b/zendesk/endpoints_v2.py @@ -665,6 +665,42 @@ 'valid_params' : ['ids'], 'method': 'DELETE', }, + + # Targets + 'list_targets': { + 'path': '/targets.json', + 'method': 'GET', + }, + 'create_target': { + 'path': '/targets.json', + 'method': 'POST', + }, + 'get_target': { + 'path': '/targets/{{target_id}}.json', + 'method': 'GET', + }, + 'update_target': { + 'path': '/targets/{{target_id}}.json', + 'method': 'PUT', + }, + + # Triggers + 'list_triggers': { + 'path': '/triggers.json', + 'method': 'GET', + }, + 'create_trigger': { + 'path': '/triggers.json', + 'method': 'POST', + }, + 'get_trigger': { + 'path': '/triggers/{{trigger_id}}.json', + 'method': 'GET', + }, + 'update_trigger': { + 'path': '/triggers/{{trigger_id}}.json', + 'method': 'PUT', + }, } # Patch mapping table with correct HTTP Status expected