def METHOD_NAME(what, args):
    """
    Run the equivalent of rclone config create
    or rclone config update
    what should either be "create" or "update
    """
    print(what, args)
    params = parse_parameters(args.parameters)
    inp = {
        "name": args.name,
        "parameters": params,
        "opt": {
            "nonInteractive": True,
            "all": args.all,
            "noObscure": args.obscured_passwords,
            "obscure": not args.obscured_passwords,
        },
    }
    if what == "create":
        inp["type"] = args.type
    while True:
        print(sep)
        print("Input to API")
        pprint(inp)
        print(sep)
        out = rpc(args, "config/"+what, inp)
        print(sep)
        print("Output from API")
        pprint(out)
        print(sep)
        if out["State"] == "":
            return
        if out["Error"]:
                print("Error", out["Error"])
        result = ask(out["Option"])
        inp["opt"]["state"] = out["State"]
        inp["opt"]["result"] = result
        inp["opt"]["continue"] = True