@fiss_cmd<EOL>def config_put(args):
config = args.config<EOL>if os.path.isfile(config):<EOL><INDENT>with open(config, '<STR_LIT:r>') as fp:<EOL><INDENT>config = json.loads(fp.read())<EOL><DEDENT><DEDENT>elif isinstance(config, str):<EOL><INDENT>config = json.loads(config)<EOL><DEDENT>elif isinstance(config, dict):<EOL><INDENT>pass<EOL><DEDENT>elif hasattr(config, "<STR_LIT>"):<EOL><INDENT>config = json.loads(config.read())<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>r = fapi.create_workspace_config(args.project, args.workspace, config)<EOL>fapi._check_response_code(r, [<NUM_LIT>])<EOL>return True<EOL>
Install a valid method configuration into a workspace, in one of several
       ways: from a JSON file containing a config definition (both file names
       and objects are supported); as a string representing the content of such
       a JSON file; or as a dict generated from such JSON content, e.g via
       json.loads(). Note that the CLI supports only string & filename input.