diff --git a/output/schema/schema.json b/output/schema/schema.json index 8c21252df3..45d4118d9f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -12180,6 +12180,27 @@ ], "visibility": "public" }, + { + "accept": [ + "application/json" + ], + "description": "Resets an existing transform.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html", + "name": "transform.reset_transform", + "request": null, + "requestBodyRequired": false, + "response": null, + "stability": "stable", + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_transform/{transform_id}/_reset" + } + ], + "visibility": "public" + }, { "accept": [ "application/json" diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 42846efabd..2a6e4529f8 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1215,6 +1215,7 @@ "ml.delete_trained_model": { "request": [ "Request: missing json spec query parameter 'timeout'", + "Request: missing json spec query parameter 'force'", "Request: should not have a body" ], "response": [] @@ -1950,6 +1951,12 @@ "response definition transform.preview_transform:Response / body / Property 'generated_dest_index' / instance_of - Non-leaf type cannot be used here: 'indices._types:IndexState'" ] }, + "transform.reset_transform": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "transform.start_transform": { "request": [ "Request: should not have a body" diff --git a/specification/_json_spec/ml.delete_trained_model.json b/specification/_json_spec/ml.delete_trained_model.json index 209349eca5..83920bc59c 100644 --- a/specification/_json_spec/ml.delete_trained_model.json +++ b/specification/_json_spec/ml.delete_trained_model.json @@ -29,6 +29,11 @@ "required": false, "description": "Controls the amount of time to wait for the model to be deleted.", "default": "30s" + }, + "force": { + "type": "boolean", + "required": false, + "description": "True if the model should be forcefully deleted" } } } diff --git a/specification/_json_spec/transform.reset_transform.json b/specification/_json_spec/transform.reset_transform.json new file mode 100644 index 0000000000..119895af11 --- /dev/null +++ b/specification/_json_spec/transform.reset_transform.json @@ -0,0 +1,34 @@ +{ + "transform.reset_transform": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html", + "description": "Resets an existing transform." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_transform/{transform_id}/_reset", + "methods": ["POST"], + "parts": { + "transform_id": { + "type": "string", + "description": "The id of the transform to reset" + } + } + } + ] + }, + "params": { + "force": { + "type": "boolean", + "required": false, + "description": "When `true`, the transform is reset regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be reset." + } + } + } +}