def copy_config_to_repo(namespace, workspace, from_cnamespace,<EOL>from_config, to_cnamespace, to_config):
body = {<EOL>"<STR_LIT>" : to_cnamespace,<EOL>"<STR_LIT>"      : to_config,<EOL>"<STR_LIT>"        : from_cnamespace,<EOL>"<STR_LIT>"             : from_config<EOL>}<EOL>uri = "<STR_LIT>".format(<EOL>namespace, workspace)<EOL>return __post(uri, json=body)<EOL>
Copy a method config from a workspace to the methods repository.

    Args:
        namespace (str): project to which workspace belongs
        workspace (str): Workspace name
        from_cnamespace (str): Source configuration namespace
        from_config (str): Source configuration name
        to_cnamespace (str): Target configuration namespace
        to_config (str): Target configuration name

    Swagger:
        https://api.firecloud.org/#!/Method_Configurations/copyToMethodRepo
        DUPLICATE: https://api.firecloud.org/#!/Method_Repository/copyToMethodRepo