code: def rename_workspace_config(namespace, workspace, cnamespace, config,
                                              new_namespace, new_name):
      
  
      body = {
          "namespace" : new_namespace,
          "name"      : new_name,
          # I have no idea why this is required by FC, but it is...
          "workspaceName" : {
              "namespace" : namespace,
              "name"      : workspace
          }
      }
      uri = "workspaces/{0}/{1}/method_configs/{2}/{3}/rename".format(namespace,
                                                  workspace, cnamespace, config)
      return __post(uri, json=body)
docs: Rename a method configuration in a workspace.
  
      Args:
          namespace (str): project to which workspace belongs
          workspace (str): Workspace name
          mnamespace (str): Config namespace
          config (str): Config name
          new_namespace (str): Updated config namespace
          new_name (str): Updated method name
  
      Swagger:
          https://api.firecloud.org/#!/Method_Configurations/renameWorkspaceMethodConfig