def update_detector(self, detector_id, detector):
resp = self._put(self._u(self._DETECTOR_ENDPOINT_SUFFIX, detector_id),<EOL>data=detector)<EOL>resp.raise_for_status()<EOL>return resp.json()<EOL>
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).