// This file is autogenerated, DO NOT EDIT
// ml/trained-models/apis/update-trained-model-deployment.asciidoc:121

[source, python]
----
resp = client.ml.update_trained_model_deployment(
    model_id="elastic__distilbert-base-uncased-finetuned-conll03-english",
    adaptive_allocations={
        "enabled": True,
        "min_number_of_allocations": 3,
        "max_number_of_allocations": 10
    },
)
print(resp)
----
