def post_data(self, file_name=None, legacy=False,<EOL>verifytype=VERIFY_BY_SLICE):
if (file_name is None):<EOL><INDENT>complete_example = (<EOL>self.dataset, self.project, self.channels, self.metadata)<EOL>data = json.loads(self.nd_json(*complete_example))<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>with open(file_name) as data_file:<EOL><INDENT>data = json.load(data_file)<EOL><DEDENT><DEDENT>except:<EOL><INDENT>raise OSError("<STR_LIT>")<EOL><DEDENT><DEDENT>self.put_data(data)<EOL>
Arguments:
    file_name (str): The file name of the json file to post (optional).
        If this is left unspecified it is assumed the data is in the
        AutoIngest object.
    dev (bool): If pushing to a microns dev branch server set this
        to True, if not leave False.
    verifytype (enum): Set http verification type, by checking the
        first slice is accessible or by checking channel folder.
        NOTE: If verification occurs by folder there is NO image size
        or type verification. Enum: [Folder, Slice]

Returns:
    None