def validate_detector(self, detector):
resp = self._post(self._u(self._DETECTOR_ENDPOINT_SUFFIX, '<STR_LIT>'),<EOL>data=detector)<EOL>resp.raise_for_status()<EOL>
Validate a detector.

        Validates the given detector; throws a 400 Bad Request HTTP error if
        the detector is invalid; otherwise doesn't return or throw anything.

        Args:
            detector (object): the detector model object. Will be serialized as
                JSON.