// This file is autogenerated, DO NOT EDIT
// docs/update.asciidoc:364

[source, python]
----
resp = client.update(
    index="test",
    id="1",
    doc={
        "name": "new_name"
    },
    doc_as_upsert=True,
)
print(resp)
----
