POST /mltk/experiments/{experiment_id}/clone_models

POST /mltk/experiments/{experiment_id}/clone_models

Clone all trained models for the experiment into a different app/name.

Description. Clone all trained models for the experiment into a different app/name. Each exp_{experiment_id}{suffix} becomes {name}{suffix}.

Body (JSON). Must contain exactly two keys:

{ "app": "my_other_app", "name": "my_cloned_model" }

name must be a valid Python identifier (no dashes / special chars). If any clone fails, the loop exits early and the response reports per-model status.

Example.

curl -sk -u "$SPLUNK_USER:$SPLUNK_PASSWORD" -X POST 
  -H "Content-Type: application/json" 
  --data '{"app":"my_other_app","name":"my_cloned_model"}' 
  "$SPLUNK_HOST/servicesNS/nobody/Splunk_ML_Toolkit/mltk/experiments/abc123def456abc123def456abc12345/clone_models?output_mode=json"

Source. bin/rest_handlers/experiments.py, bin/experiment/experiment_store.py, bin/experiment/history_store.py, bin/experiment/experiment_validation.py, bin/experiment/experiment_schema.json, bin/experiment/experiment_history_schema.json.

Press Cmd/Ctrl+K to focus search. Esc to close.

Type to search the portal.