From 7e3e7da79c60a7de097493fde84399756f952cc5 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Thu, 9 Dec 2021 10:52:58 -0600 Subject: [PATCH] Add optional body to ml.open_job and ml.forecast APIs --- .../src/main/resources/rest-api-spec/api/ml.forecast.json | 7 ++++++- .../src/main/resources/rest-api-spec/api/ml.open_job.json | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ml.forecast.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ml.forecast.json index 8a88e9048027f..a468741815b12 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ml.forecast.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ml.forecast.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ @@ -41,6 +42,10 @@ "required":false, "description":"The max memory able to be used by the forecast. Default is 20mb." } + }, + "body":{ + "description": "Query parameters can be specified in the body", + "required":false } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ml.open_job.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ml.open_job.json index 07b9e666e28e2..b93b9cff82568 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ml.open_job.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ml.open_job.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ @@ -24,6 +25,10 @@ } } ] + }, + "body":{ + "description": "Query parameters can be specified in the body", + "required":false } } }