def create_endpoint(self, endpoint):
self._validate_subscriber_id(endpoint.subscriber_id)<EOL>url = "<STR_LIT>"<EOL>response = NWS_DAO().postURL(<EOL>url, self._write_headers(), self._json_body(endpoint.json_data()))<EOL>if response.status != <NUM_LIT>:<EOL><INDENT>raise DataFailureException(url, response.status, response.data)<EOL><DEDENT>return response.status<EOL>
Create a new endpoint
:param endpoint: is the new endpoint that the client wants to create