def putWebhook(self, hook_id, external_id, url, event_types):
        """Update a webhook."""
        path = 'notification/webhook'
        payload = {'id': hook_id, 'externalId': external_id,
                   'url': url, 'eventTypes': event_types}
        return self.rachio.put(path, payload)
Update a webhook.