Frappe Client: Need help using Submit()

It is unclear to me what datatypes the client.submit function is expecting.
A dictionary doesn’t work: {"name"; "record"}
A list doesn’t work: ["record"]
A whole document doesn’t work: submit_record = client.get_doc(submit_doctype, name=name["name"])
client.submit(submit_record)

All I get is the same error: TypeError: submit() takes exactly 1 argument (0 given)
Or when I try:
client.submit(submit_doctype, name)
I get:
TypeError: submit() takes 2 positional arguments but 3 were given

1 Like