Path parameters
- job_id
string Required The ID of the job to reset.
Query parameters
- wait_for_completion
boolean Should this request wait until the operation has completed before returning.
- delete_user_annotations
boolean Specifies whether annotations that have been added by the user should be deleted along with any auto-generated annotations when the job is reset.
POST /_ml/anomaly_detectors/{job_id}/_reset
Console
POST _ml/anomaly_detectors/total-requests/_reset
resp = client.ml.reset_job(
job_id="total-requests",
)
const response = await client.ml.resetJob({
job_id: "total-requests",
});
response = client.ml.reset_job(
job_id: "total-requests"
)
$resp = $client->ml()->resetJob([
"job_id" => "total-requests",
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/anomaly_detectors/total-requests/_reset"