// This file is autogenerated, DO NOT EDIT
// connector/apis/set-connector-sync-job-stats-api.asciidoc:81

[source, python]
----
resp = client.perform_request(
    "PUT",
    "/_connector/_sync_job/my-connector-sync-job/_stats",
    headers={"Content-Type": "application/json"},
    body={
        "deleted_document_count": 10,
        "indexed_document_count": 20,
        "indexed_document_volume": 1000,
        "total_document_count": 2000,
        "last_seen": "2023-01-02T10:00:00Z"
    },
)
print(resp)
----
