// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/red-yellow-cluster-status.asciidoc:281

[source, python]
----
resp = client.cluster.reroute(
    commands=[
        {
            "allocate_empty_primary": {
                "index": "my-index",
                "shard": 0,
                "node": "my-node",
                "accept_data_loss": "true"
            }
        }
    ],
)
print(resp)
----
