Updates certain properties of a snapshot.
job_id
(required)
snapshot_id
(required)
The following properties can be updated after the model snapshot is created:
description
retain
model_snapshot_retention_days
.
Note that this snapshot will still be deleted when the job is deleted.
The default value is false.
You must have manage_ml
, or manage
cluster privileges to use this API.
For more information, see
Security Privileges.
The following example updates the snapshot identified as 1491852978
:
POST _ml/anomaly_detectors/it_ops_new_logs/model_snapshots/1491852978/_update { "description": "Snapshot 1", "retain": true }
When the snapshot is updated, you receive the following results:
{ "acknowledged": true, "model": { "job_id": "it_ops_new_logs", "timestamp": 1491852978000, "description": "Snapshot 1", ... "retain": true } }