Update a snapshot
Added in 5.4.0
Updates certain properties of a snapshot.
Path parameters
-
job_id
string Required Identifier for the anomaly detection job.
-
snapshot_id
string Required Identifier for the model snapshot.
Body
Required
-
description
string A description of the model snapshot.
-
retain
boolean If
true
, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days
. However, this snapshot will be deleted when the job is deleted.
POST
/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update
curl \
--request POST 'http://api.example.com/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"description":"string","retain":true}'