def create_endpoint(self, endpoint):
        """
        Create a new endpoint
        :param endpoint: is the new endpoint that the client wants to create
        """
        self._validate_subscriber_id(endpoint.subscriber_id)

        url = "/notification/v1/endpoint"
        response = NWS_DAO().postURL(
            url, self._write_headers(), self._json_body(endpoint.json_data()))

        if response.status != 201:
            raise DataFailureException(url, response.status, response.data)
        return response.status
Create a new endpoint
        :param endpoint: is the new endpoint that the client wants to create