code: def update_detector(self, detector_id, detector):
          
          resp = self._put(self._u(self._DETECTOR_ENDPOINT_SUFFIX, detector_id),
                           data=detector)
          resp.raise_for_status()
          return resp.json()
docs: Update an existing detector.
  
          Args:
              detector_id (string): the ID of the detector.
              detector (object): the detector model object. Will be serialized as
                  JSON.
          Returns:
              dictionary of the response (updated detector model).