Create part of a trained model definition Added in 8.0.0
Path parameters
-
The unique identifier of the trained model.
-
The definition part number. When the definition is loaded for inference the definition parts are streamed in the order of their part number. The first part must be
0
and the final part must betotal_parts - 1
.
Body Required
-
The definition part for the model. Must be a base64 encoded string.
-
The total uncompressed definition length in bytes. Not base64 encoded.
-
The total number of parts that will be uploaded. Must be greater than 0.
PUT
/_ml/trained_models/{model_id}/definition/{part}
curl \
-X PUT http://api.example.com/_ml/trained_models/{model_id}/definition/{part} \
-H "Content-Type: application/json" \
-d '{"definition":"string","total_definition_length":42.0,"total_parts":42.0}'
Request examples
{
"definition": "string",
"total_definition_length": 42.0,
"total_parts": 42.0
}
Response examples (200)
{
"acknowledged": true
}