def create_new_dispatch(self, dispatch):
self._validate_uuid(dispatch.dispatch_id)<EOL>url = "<STR_LIT>"<EOL>post_response = NWS_DAO().postURL(<EOL>url, self._write_headers(), self._json_body(dispatch.json_data()))<EOL>if post_response.status != <NUM_LIT:200>:<EOL><INDENT>raise DataFailureException(<EOL>url, post_response.status, post_response.data)<EOL><DEDENT>return post_response.status<EOL>
Create a new dispatch
:param dispatch:
is the new dispatch that the client wants to create