public HttpResponseMessage Put(string triggerId,
                                       [FromBody] TriggerInput <string, TriggerBody> triggerInput)
        {
            ClientTriggerCallback callback;

            try
            {
                callback = triggerInput.GetCallback();
            }
            catch (Exception)
            {
                return(new HttpResponseMessage(HttpStatusCode.BadRequest));
            }

            _triggerRepository.RegisterTrigger(triggerId, triggerInput);

            return(Request.PushTriggerRegistered(callback));
        }