code: def update_subscription(self, subscription_id, url=None, events=None):
          
          params = {}
  
          if url is not None:
              params['url'] = url
  
          if events is not None:
              params['events'] = events
  
          url = self.SUBSCRIPTIONS_ID_URL % subscription_id
  
          connection = Connection(self.token)
          connection.set_url(self.production, url)
          connection.add_header('Content-Type', 'application/json')
          connection.add_params(params)
  
          return connection.patch_request()
docs: Create subscription
          :param subscription_id: Subscription to update
          :param events: Events to subscribe
          :param url: Url to send events