Create part of a trained model definition
Added in 8.0.0
Body
Required
-
definition
string Required The definition part for the model. Must be a base64 encoded string.
-
total_definition_length
number Required The total uncompressed definition length in bytes. Not base64 encoded.
-
total_parts
number Required The total number of parts that will be uploaded. Must be greater than 0.
PUT
/_ml/trained_models/{model_id}/definition/{part}
curl \
--request PUT http://api.example.com/_ml/trained_models/{model_id}/definition/{part} \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"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
}