diff --git a/oas_docs/bundle.json b/oas_docs/bundle.json index 210ecb6fa266f..320730edc972e 100644 --- a/oas_docs/bundle.json +++ b/oas_docs/bundle.json @@ -349,18 +349,6 @@ "description": "WARNING: When you delete a connector, it cannot be recovered.", "operationId": "delete-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -394,18 +382,6 @@ "get": { "operationId": "get-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "An identifier for the connector.", "in": "path", @@ -419,7 +395,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -479,18 +455,6 @@ "post": { "operationId": "post-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -513,7 +477,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -548,7 +512,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -608,18 +572,6 @@ "put": { "operationId": "put-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -642,7 +594,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -672,7 +624,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -735,18 +687,6 @@ "description": "You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems.", "operationId": "post-actions-connector-id-execute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -769,7 +709,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -789,7 +729,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -852,18 +792,6 @@ "description": "You do not need any Kibana feature privileges to run this API.", "operationId": "get-actions-connector-types", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases).", "in": "query", @@ -884,20 +812,7 @@ "/api/actions/connectors": { "get": { "operationId": "get-actions-connectors", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": {}, "summary": "Get all connectors", "tags": [ @@ -909,18 +824,6 @@ "delete": { "operationId": "delete-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -963,18 +866,6 @@ "get": { "operationId": "get-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The identifier for the rule.", "in": "path", @@ -988,7 +879,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -1844,18 +1735,6 @@ "post": { "operationId": "post-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -1878,7 +1757,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -2174,7 +2053,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -3030,18 +2909,6 @@ "put": { "operationId": "put-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -3064,7 +2931,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -3343,7 +3210,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -4204,18 +4071,6 @@ "post": { "operationId": "post-alerting-rule-id-disable", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4238,7 +4093,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -4278,18 +4133,6 @@ "post": { "operationId": "post-alerting-rule-id-enable", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4334,18 +4177,6 @@ "post": { "operationId": "post-alerting-rule-id-mute-all", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4390,18 +4221,6 @@ "post": { "operationId": "post-alerting-rule-id-unmute-all", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4446,18 +4265,6 @@ "post": { "operationId": "post-alerting-rule-id-update-api-key", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4505,18 +4312,6 @@ "post": { "operationId": "post-alerting-rule-rule-id-alert-alert-id-mute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4570,18 +4365,6 @@ "post": { "operationId": "post-alerting-rule-rule-id-alert-alert-id-unmute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4635,18 +4418,6 @@ "get": { "operationId": "get-alerting-rules-find", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The number of rules to return per page.", "in": "query", @@ -4793,7 +4564,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -5649,18 +5420,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "get-dashboards-dashboard", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The page number to return. Default is \"1\".", "in": "query", @@ -5687,7 +5446,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -5836,18 +5595,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "delete-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -5879,18 +5626,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "get-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A unique identifier for the dashboard.", "in": "path", @@ -5904,7 +5639,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -6539,18 +6274,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "post-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -6573,7 +6296,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -7108,7 +6831,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -7715,18 +7438,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "put-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -7749,7 +7460,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8278,7 +7989,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8885,24 +8596,11 @@ "/api/fleet/agent_download_sources": { "get": { "operationId": "get-fleet-agent-download-sources", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8962,7 +8660,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -8994,18 +8692,6 @@ "post": { "operationId": "post-fleet-agent-download-sources", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9019,7 +8705,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9055,7 +8741,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9100,7 +8786,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9135,18 +8821,6 @@ "description": "Delete an agent binary download source by ID.", "operationId": "delete-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9169,7 +8843,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9187,7 +8861,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9220,18 +8894,6 @@ "description": "Get an agent binary download source by ID.", "operationId": "get-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "sourceId", @@ -9244,7 +8906,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9289,7 +8951,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9322,18 +8984,6 @@ "description": "Update an agent binary download source by ID.", "operationId": "put-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9355,7 +9005,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9391,7 +9041,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9436,7 +9086,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9470,18 +9120,6 @@ "get": { "operationId": "get-fleet-agent-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -9578,7 +9216,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -10287,7 +9925,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -10319,18 +9957,6 @@ "post": { "operationId": "post-fleet-agent-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -10352,7 +9978,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -10603,7 +10229,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -11297,7 +10923,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -11331,18 +10957,6 @@ "post": { "operationId": "post-fleet-agent-policies-bulk-get", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -11368,7 +10982,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -11398,7 +11012,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12095,7 +11709,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12130,18 +11744,6 @@ "description": "Delete an agent policy by ID.", "operationId": "post-fleet-agent-policies-delete", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -12155,7 +11757,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12178,7 +11780,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12200,7 +11802,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12235,18 +11837,6 @@ "description": "Get a list of outputs associated with agent policies.", "operationId": "post-fleet-agent-policies-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -12260,7 +11850,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12283,7 +11873,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12385,7 +11975,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12420,18 +12010,6 @@ "description": "Get an agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -12456,7 +12034,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -13150,7 +12728,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -13183,18 +12761,6 @@ "description": "Update an agent policy by ID.", "operationId": "put-fleet-agent-policies-agentpolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -13228,7 +12794,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -13479,7 +13045,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14173,7 +13739,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -14208,18 +13774,6 @@ "description": "Copy an agent policy by ID.", "operationId": "post-fleet-agent-policies-agentpolicyid-copy", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -14253,7 +13807,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14276,7 +13830,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14970,7 +14524,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15005,18 +14559,6 @@ "description": "Download an agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid-download", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15053,7 +14595,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "string" } @@ -15062,7 +14604,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15087,7 +14629,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15122,18 +14664,6 @@ "description": "Get a full agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid-full", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15170,7 +14700,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15625,7 +15155,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15660,18 +15190,6 @@ "description": "Get a list of outputs associated with agent policy by policy id.", "operationId": "get-fleet-agent-policies-agentpolicyid-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15684,7 +15202,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15783,7 +15301,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15817,18 +15335,6 @@ "get": { "operationId": "get-fleet-agent-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "policyId", @@ -15867,7 +15373,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15930,7 +15436,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15964,18 +15470,6 @@ "get": { "operationId": "get-fleet-agent-status-data", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "agentsIds", @@ -16023,7 +15517,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16061,7 +15555,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16095,18 +15589,6 @@ "get": { "operationId": "get-fleet-agents", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -16193,7 +15675,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16614,7 +16096,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16646,18 +16128,6 @@ "post": { "operationId": "post-fleet-agents", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -16671,7 +16141,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16693,7 +16163,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16714,7 +16184,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16748,18 +16218,6 @@ "get": { "operationId": "get-fleet-agents-action-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -16807,7 +16265,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16949,7 +16407,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16983,18 +16441,6 @@ "post": { "operationId": "post-fleet-agents-actions-actionid-cancel", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17017,7 +16463,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17090,7 +16536,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17123,24 +16569,11 @@ "/api/fleet/agents/available_versions": { "get": { "operationId": "get-fleet-agents-available-versions", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17161,7 +16594,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17195,18 +16628,6 @@ "post": { "operationId": "post-fleet-agents-bulk-reassign", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17220,7 +16641,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17260,7 +16681,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17278,7 +16699,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17312,18 +16733,6 @@ "post": { "operationId": "post-fleet-agents-bulk-request-diagnostics", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17337,7 +16746,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17378,7 +16787,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17396,7 +16805,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17430,18 +16839,6 @@ "post": { "operationId": "post-fleet-agents-bulk-unenroll", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17455,7 +16852,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17501,7 +16898,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17519,7 +16916,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17553,18 +16950,6 @@ "post": { "operationId": "post-fleet-agents-bulk-update-agent-tags", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17578,7 +16963,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17626,7 +17011,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17644,7 +17029,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17678,18 +17063,6 @@ "post": { "operationId": "post-fleet-agents-bulk-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17703,7 +17076,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17759,7 +17132,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17777,7 +17150,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17812,18 +17185,6 @@ "description": "Delete a file uploaded by an agent.", "operationId": "delete-fleet-agents-files-fileid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17846,7 +17207,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17868,7 +17229,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17903,18 +17264,6 @@ "description": "Get a file uploaded by an agent.", "operationId": "get-fleet-agents-files-fileid-filename", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "fileId", @@ -17935,7 +17284,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "object" } @@ -17944,7 +17293,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17977,24 +17326,11 @@ "/api/fleet/agents/setup": { "get": { "operationId": "get-fleet-agents-setup", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the agent setup status. `isReady` indicates whether the setup is ready. If the setup is not ready, `missing_requirements` lists which requirements are missing.", @@ -18046,7 +17382,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18078,18 +17414,6 @@ "post": { "operationId": "post-fleet-agents-setup", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18104,7 +17428,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the result of Fleet's `setup` lifecycle. If `isInitialized` is true, Fleet is ready to accept agent enrollment. `nonFatalErrors` may include useful insight into non-blocking issues with Fleet setup.", @@ -18143,7 +17467,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18177,18 +17501,6 @@ "get": { "operationId": "get-fleet-agents-tags", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "kuery", @@ -18210,7 +17522,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18231,7 +17543,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18266,18 +17578,6 @@ "description": "Delete an agent by ID.", "operationId": "delete-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18300,7 +17600,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18321,7 +17621,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18354,18 +17654,6 @@ "description": "Get an agent by ID.", "operationId": "get-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentId", @@ -18387,7 +17675,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18787,7 +18075,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18820,18 +18108,6 @@ "description": "Update an agent by ID.", "operationId": "put-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18853,7 +18129,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18876,7 +18152,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19276,7 +18552,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19310,18 +18586,6 @@ "post": { "operationId": "post-fleet-agents-agentid-actions", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19343,7 +18607,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19419,7 +18683,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19492,7 +18756,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19526,18 +18790,6 @@ "post": { "operationId": "post-fleet-agents-agentid-reassign", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19559,7 +18811,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19578,7 +18830,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": {}, @@ -19589,7 +18841,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19623,18 +18875,6 @@ "post": { "operationId": "post-fleet-agents-agentid-request-diagnostics", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19656,7 +18896,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -19679,7 +18919,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19697,7 +18937,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19731,18 +18971,6 @@ "post": { "operationId": "post-fleet-agents-agentid-unenroll", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19764,7 +18992,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -19792,18 +19020,6 @@ "post": { "operationId": "post-fleet-agents-agentid-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19825,7 +19041,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19853,7 +19069,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": {}, @@ -19864,7 +19080,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19898,18 +19114,6 @@ "get": { "operationId": "get-fleet-agents-agentid-uploads", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentId", @@ -19922,7 +19126,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19983,7 +19187,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20017,18 +19221,6 @@ "get": { "operationId": "get-fleet-check-permissions", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "fleetServerSetup", @@ -20041,7 +19233,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20067,7 +19259,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20100,24 +19292,11 @@ "/api/fleet/data_streams": { "get": { "operationId": "get-fleet-data-streams", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20224,7 +19403,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20258,18 +19437,6 @@ "get": { "operationId": "get-fleet-enrollment-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -20300,7 +19467,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20413,7 +19580,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20445,18 +19612,6 @@ "post": { "operationId": "post-fleet-enrollment-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20470,7 +19625,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20495,7 +19650,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20556,7 +19711,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20591,18 +19746,6 @@ "description": "Revoke an enrollment API key by ID by marking it as inactive.", "operationId": "delete-fleet-enrollment-api-keys-keyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20625,7 +19768,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20646,7 +19789,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20679,18 +19822,6 @@ "description": "Get an enrollment API key by ID.", "operationId": "get-fleet-enrollment-api-keys-keyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "keyId", @@ -20703,7 +19834,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20757,7 +19888,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20791,18 +19922,6 @@ "post": { "operationId": "post-fleet-epm-bulk-assets", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20816,7 +19935,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20851,7 +19970,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20907,7 +20026,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20941,18 +20060,6 @@ "get": { "operationId": "get-fleet-epm-categories", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "prerelease", @@ -20973,7 +20080,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21017,7 +20124,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21051,18 +20158,6 @@ "post": { "operationId": "post-fleet-epm-custom-integrations", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -21076,7 +20171,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21125,7 +20220,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21225,7 +20320,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21259,18 +20354,6 @@ "get": { "operationId": "get-fleet-epm-data-streams", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "type", @@ -21320,7 +20403,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21350,7 +20433,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21384,18 +20467,6 @@ "get": { "operationId": "get-fleet-epm-packages", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "category", @@ -21424,7 +20495,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21923,7 +20994,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21955,18 +21026,6 @@ "post": { "operationId": "post-fleet-epm-packages", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -21998,7 +21057,7 @@ ], "requestBody": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "format": "binary", "type": "string" @@ -22009,7 +21068,7 @@ "responses": { "200": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "additionalProperties": false, "properties": { @@ -22109,7 +21168,7 @@ }, "400": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22143,18 +21202,6 @@ "post": { "operationId": "post-fleet-epm-packages-bulk", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -22176,7 +21223,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22226,7 +21273,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22386,7 +21433,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22420,18 +21467,6 @@ "get": { "operationId": "get-fleet-epm-packages-installed", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "dataStreamType", @@ -22507,7 +21542,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22626,7 +21661,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22659,24 +21694,11 @@ "/api/fleet/epm/packages/limited": { "get": { "operationId": "get-fleet-epm-packages-limited", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22697,7 +21719,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22731,18 +21753,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-stats", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -22755,7 +21765,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22782,7 +21792,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22816,18 +21826,6 @@ "delete": { "operationId": "delete-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -22866,7 +21864,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22953,7 +21951,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22985,18 +21983,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -23050,7 +22036,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23644,7 +22630,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -23676,18 +22662,6 @@ "post": { "operationId": "post-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -23743,7 +22717,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -23765,7 +22739,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23865,7 +22839,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -23897,18 +22871,6 @@ "put": { "operationId": "put-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -23938,7 +22900,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23957,7 +22919,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -24539,7 +23501,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24573,18 +23535,6 @@ "post": { "operationId": "post-fleet-epm-packages-pkgname-pkgversion-transforms-authorize", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -24622,7 +23572,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -24653,7 +23603,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -24682,7 +23632,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24716,18 +23666,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-pkgversion-filepath", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -24756,14 +23694,14 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": {} } } }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24797,18 +23735,6 @@ "get": { "operationId": "get-fleet-epm-templates-pkgname-pkgversion-inputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -24859,7 +23785,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -24931,7 +23857,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24964,24 +23890,11 @@ "/api/fleet/epm/verification_key_id": { "get": { "operationId": "get-fleet-epm-verification-key-id", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25000,7 +23913,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25033,24 +23946,11 @@ "/api/fleet/fleet_server_hosts": { "get": { "operationId": "get-fleet-fleet-server-hosts", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25119,7 +24019,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25151,18 +24051,6 @@ "post": { "operationId": "post-fleet-fleet-server-hosts", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25176,7 +24064,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25221,7 +24109,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25275,7 +24163,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25310,18 +24198,6 @@ "description": "Delete a Fleet Server host by ID.", "operationId": "delete-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25344,7 +24220,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25362,7 +24238,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25395,18 +24271,6 @@ "description": "Get a Fleet Server host by ID.", "operationId": "get-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "itemId", @@ -25419,7 +24283,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25473,7 +24337,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25506,18 +24370,6 @@ "description": "Update a Fleet Server host by ID.", "operationId": "put-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25539,7 +24391,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25575,7 +24427,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25629,7 +24481,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25663,18 +24515,6 @@ "post": { "operationId": "post-fleet-health-check", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25688,7 +24528,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25707,7 +24547,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25731,7 +24571,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25756,7 +24596,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25790,18 +24630,6 @@ "get": { "operationId": "get-fleet-kubernetes", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "download", @@ -25830,7 +24658,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25848,7 +24676,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25882,18 +24710,6 @@ "get": { "operationId": "get-fleet-kubernetes-download", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "download", @@ -25922,7 +24738,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "string" } @@ -25931,7 +24747,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25956,7 +24772,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25990,18 +24806,6 @@ "post": { "operationId": "post-fleet-logstash-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -26016,7 +24820,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -26034,7 +24838,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26068,18 +24872,6 @@ "post": { "operationId": "post-fleet-message-signing-service-rotate-key-pair", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -26103,7 +24895,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -26121,7 +24913,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26146,7 +24938,7 @@ }, "500": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26179,24 +24971,11 @@ "/api/fleet/outputs": { "get": { "operationId": "get-fleet-outputs", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -27244,7 +26023,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -27276,18 +26055,6 @@ "post": { "operationId": "post-fleet-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -27301,7 +26068,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -28326,7 +27093,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -29359,7 +28126,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29394,18 +28161,6 @@ "description": "Delete output by ID.", "operationId": "delete-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -29428,7 +28183,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -29446,7 +28201,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29471,7 +28226,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29504,18 +28259,6 @@ "description": "Get output by ID.", "operationId": "get-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "outputId", @@ -29528,7 +28271,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -30561,7 +29304,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -30594,18 +29337,6 @@ "description": "Update output by ID.", "operationId": "put-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -30627,7 +29358,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -31628,7 +30359,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -32661,7 +31392,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -32695,18 +31426,6 @@ "get": { "operationId": "get-fleet-outputs-outputid-health", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "outputId", @@ -32719,7 +31438,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -32748,7 +31467,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -32782,18 +31501,6 @@ "get": { "operationId": "get-fleet-package-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -32870,7 +31577,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -33470,7 +32177,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -33502,18 +32209,6 @@ "post": { "operationId": "post-fleet-package-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -33539,7 +32234,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -34149,7 +32844,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -34734,7 +33429,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -34759,7 +33454,7 @@ }, "409": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -34793,18 +33488,6 @@ "post": { "operationId": "post-fleet-package-policies-bulk-get", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -34830,7 +33513,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -34856,7 +33539,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35444,7 +34127,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35469,7 +34152,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35496,18 +34179,6 @@ "post": { "operationId": "post-fleet-package-policies-delete", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35521,7 +34192,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35546,7 +34217,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -35665,7 +34336,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35700,18 +34371,6 @@ "description": "Upgrade a package policy to a newer package version.", "operationId": "post-fleet-package-policies-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35725,7 +34384,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35747,7 +34406,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -35790,7 +34449,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35824,18 +34483,6 @@ "post": { "operationId": "post-fleet-package-policies-upgrade-dryrun", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35849,7 +34496,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35874,7 +34521,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -36987,7 +35634,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37022,18 +35669,6 @@ "description": "Delete a package policy by ID.", "operationId": "delete-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -37064,7 +35699,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37082,7 +35717,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37115,18 +35750,6 @@ "description": "Get a package policy by ID.", "operationId": "get-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "packagePolicyId", @@ -37151,7 +35774,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37736,7 +36359,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37761,7 +36384,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37787,18 +36410,6 @@ "description": "Update a package policy by ID.", "operationId": "put-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -37832,7 +36443,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -38434,7 +37045,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39019,7 +37630,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39044,7 +37655,7 @@ }, "403": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39077,24 +37688,11 @@ "/api/fleet/proxies": { "get": { "operationId": "get-fleet-proxies", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39177,7 +37775,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39209,18 +37807,6 @@ "post": { "operationId": "post-fleet-proxies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39234,7 +37820,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39293,7 +37879,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39361,7 +37947,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39396,18 +37982,6 @@ "description": "Delete a proxy by ID", "operationId": "delete-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39430,7 +38004,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39448,7 +38022,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39481,18 +38055,6 @@ "description": "Get a proxy by ID.", "operationId": "get-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "itemId", @@ -39505,7 +38067,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39573,7 +38135,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39606,18 +38168,6 @@ "description": "Update a proxy by ID.", "operationId": "put-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39639,7 +38189,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39693,7 +38243,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39761,7 +38311,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39795,18 +38345,6 @@ "post": { "operationId": "post-fleet-service-tokens", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39820,7 +38358,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -39838,7 +38376,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39860,7 +38398,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39893,24 +38431,11 @@ "/api/fleet/settings": { "get": { "operationId": "get-fleet-settings", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39989,7 +38514,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40014,7 +38539,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40039,18 +38564,6 @@ "put": { "operationId": "put-fleet-settings", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40064,7 +38577,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40112,7 +38625,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40191,7 +38704,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40216,7 +38729,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40243,18 +38756,6 @@ "post": { "operationId": "post-fleet-setup", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40269,7 +38770,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the result of Fleet's `setup` lifecycle. If `isInitialized` is true, Fleet is ready to accept agent enrollment. `nonFatalErrors` may include useful insight into non-blocking issues with Fleet setup.", @@ -40308,7 +38809,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40333,7 +38834,7 @@ }, "500": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Internal Server Error", @@ -40362,18 +38863,6 @@ "description": "List the metadata for the latest uninstall tokens per agent policy.", "operationId": "get-fleet-uninstall-tokens", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Partial match filtering for policy IDs", "in": "query", @@ -40416,7 +38905,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40476,7 +38965,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40511,18 +39000,6 @@ "description": "Get one decrypted uninstall token by its ID.", "operationId": "get-fleet-uninstall-tokens-uninstalltokenid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "uninstallTokenId", @@ -40535,7 +39012,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40584,7 +39061,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40618,18 +39095,6 @@ "get": { "operationId": "get-security-role", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "If `true` and the response contains any privileges that are associated with deprecated features, they are omitted in favor of details about the appropriate replacement feature privileges.", "in": "query", @@ -40655,18 +39120,6 @@ "delete": { "operationId": "delete-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40700,18 +39153,6 @@ "get": { "operationId": "get-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The role name.", "in": "path", @@ -40746,18 +39187,6 @@ "description": "Create a new Kibana role or update the attributes of an existing role. Kibana roles are stored in the Elasticsearch native realm.", "operationId": "put-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40792,7 +39221,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41065,18 +39494,6 @@ "post": { "operationId": "post-security-roles", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41090,7 +39507,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41376,18 +39793,6 @@ "description": "It also allows you to automatically copy related objects, so when you copy a dashboard, this can automatically copy over the associated visualizations, data views, and saved searches, as required. You can request to overwrite any objects that already exist in the target space if they share an identifier or you can use the resolve copy saved objects conflicts API to do this on a per-object basis.

[Required authorization] Route required privileges: ALL of [copySavedObjectsToSpaces].", "operationId": "post-spaces-copy-saved-objects", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41401,7 +39806,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41474,18 +39879,6 @@ "post": { "operationId": "post-spaces-disable-legacy-url-aliases", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41499,7 +39892,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41550,18 +39943,6 @@ "description": "Collect references and space contexts for saved objects.", "operationId": "post-spaces-get-shareable-references", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41575,7 +39956,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41619,18 +40000,6 @@ "description": "Overwrite saved objects that are returned as errors from the copy saved objects to space API.

[Required authorization] Route required privileges: ALL of [copySavedObjectsToSpaces].", "operationId": "post-spaces-resolve-copy-saved-objects-errors", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41644,7 +40013,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41740,18 +40109,6 @@ "description": "Update one or more saved objects to add or remove them from some spaces.", "operationId": "post-spaces-update-objects-spaces", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41765,7 +40122,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41826,18 +40183,6 @@ "get": { "operationId": "get-spaces-space", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Specifies which authorization checks are applied to the API call. The default value is `any`.", "in": "query", @@ -41906,18 +40251,6 @@ "post": { "operationId": "post-spaces-space", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41931,7 +40264,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -42007,18 +40340,6 @@ "description": "When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.", "operationId": "delete-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -42055,18 +40376,6 @@ "get": { "operationId": "get-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The space identifier.", "in": "path", @@ -42090,18 +40399,6 @@ "put": { "operationId": "put-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -42124,7 +40421,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -42199,18 +40496,6 @@ "get": { "operationId": "get-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Set to \"true\" to get the response in v7 format.", "in": "query", @@ -42233,7 +40518,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -42251,7 +40536,7 @@ }, "503": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json index ff2a4b17661b9..b188ae0999b0d 100644 --- a/oas_docs/bundle.serverless.json +++ b/oas_docs/bundle.serverless.json @@ -349,18 +349,6 @@ "description": "WARNING: When you delete a connector, it cannot be recovered.", "operationId": "delete-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -394,18 +382,6 @@ "get": { "operationId": "get-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "An identifier for the connector.", "in": "path", @@ -419,7 +395,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -479,18 +455,6 @@ "post": { "operationId": "post-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -513,7 +477,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -548,7 +512,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -608,18 +572,6 @@ "put": { "operationId": "put-actions-connector-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -642,7 +594,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -672,7 +624,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -735,18 +687,6 @@ "description": "You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems.", "operationId": "post-actions-connector-id-execute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -769,7 +709,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -789,7 +729,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -852,18 +792,6 @@ "description": "You do not need any Kibana feature privileges to run this API.", "operationId": "get-actions-connector-types", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases).", "in": "query", @@ -884,20 +812,7 @@ "/api/actions/connectors": { "get": { "operationId": "get-actions-connectors", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": {}, "summary": "Get all connectors", "tags": [ @@ -909,18 +824,6 @@ "delete": { "operationId": "delete-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -963,18 +866,6 @@ "get": { "operationId": "get-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The identifier for the rule.", "in": "path", @@ -988,7 +879,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -1844,18 +1735,6 @@ "post": { "operationId": "post-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -1878,7 +1757,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -2174,7 +2053,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -3030,18 +2909,6 @@ "put": { "operationId": "put-alerting-rule-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -3064,7 +2931,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -3343,7 +3210,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -4204,18 +4071,6 @@ "post": { "operationId": "post-alerting-rule-id-disable", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4238,7 +4093,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -4278,18 +4133,6 @@ "post": { "operationId": "post-alerting-rule-id-enable", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4334,18 +4177,6 @@ "post": { "operationId": "post-alerting-rule-id-mute-all", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4390,18 +4221,6 @@ "post": { "operationId": "post-alerting-rule-id-unmute-all", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4446,18 +4265,6 @@ "post": { "operationId": "post-alerting-rule-id-update-api-key", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4505,18 +4312,6 @@ "post": { "operationId": "post-alerting-rule-rule-id-alert-alert-id-mute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4570,18 +4365,6 @@ "post": { "operationId": "post-alerting-rule-rule-id-alert-alert-id-unmute", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -4635,18 +4418,6 @@ "get": { "operationId": "get-alerting-rules-find", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The number of rules to return per page.", "in": "query", @@ -4793,7 +4564,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -5649,18 +5420,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "get-dashboards-dashboard", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The page number to return. Default is \"1\".", "in": "query", @@ -5687,7 +5446,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -5836,18 +5595,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "delete-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -5879,18 +5626,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "get-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A unique identifier for the dashboard.", "in": "path", @@ -5904,7 +5639,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -6539,18 +6274,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "post-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -6573,7 +6296,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -7108,7 +6831,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -7715,18 +7438,6 @@ "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "operationId": "put-dashboards-dashboard-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -7749,7 +7460,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8278,7 +7989,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8885,24 +8596,11 @@ "/api/fleet/agent_download_sources": { "get": { "operationId": "get-fleet-agent-download-sources", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -8962,7 +8660,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -8994,18 +8692,6 @@ "post": { "operationId": "post-fleet-agent-download-sources", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9019,7 +8705,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9055,7 +8741,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9100,7 +8786,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9135,18 +8821,6 @@ "description": "Delete an agent binary download source by ID.", "operationId": "delete-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9169,7 +8843,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9187,7 +8861,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9220,18 +8894,6 @@ "description": "Get an agent binary download source by ID.", "operationId": "get-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "sourceId", @@ -9244,7 +8906,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9289,7 +8951,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9322,18 +8984,6 @@ "description": "Update an agent binary download source by ID.", "operationId": "put-fleet-agent-download-sources-sourceid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -9355,7 +9005,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9391,7 +9041,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -9436,7 +9086,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -9470,18 +9120,6 @@ "get": { "operationId": "get-fleet-agent-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -9578,7 +9216,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -10287,7 +9925,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -10319,18 +9957,6 @@ "post": { "operationId": "post-fleet-agent-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -10352,7 +9978,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -10603,7 +10229,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -11297,7 +10923,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -11331,18 +10957,6 @@ "post": { "operationId": "post-fleet-agent-policies-bulk-get", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -11368,7 +10982,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -11398,7 +11012,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12095,7 +11709,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12130,18 +11744,6 @@ "description": "Delete an agent policy by ID.", "operationId": "post-fleet-agent-policies-delete", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -12155,7 +11757,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12178,7 +11780,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12200,7 +11802,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12235,18 +11837,6 @@ "description": "Get a list of outputs associated with agent policies.", "operationId": "post-fleet-agent-policies-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -12260,7 +11850,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12283,7 +11873,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -12385,7 +11975,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -12420,18 +12010,6 @@ "description": "Get an agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -12456,7 +12034,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -13150,7 +12728,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -13183,18 +12761,6 @@ "description": "Update an agent policy by ID.", "operationId": "put-fleet-agent-policies-agentpolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -13228,7 +12794,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -13479,7 +13045,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14173,7 +13739,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -14208,18 +13774,6 @@ "description": "Copy an agent policy by ID.", "operationId": "post-fleet-agent-policies-agentpolicyid-copy", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -14253,7 +13807,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14276,7 +13830,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -14970,7 +14524,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15005,18 +14559,6 @@ "description": "Download an agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid-download", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15053,7 +14595,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "string" } @@ -15062,7 +14604,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15087,7 +14629,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15122,18 +14664,6 @@ "description": "Get a full agent policy by ID.", "operationId": "get-fleet-agent-policies-agentpolicyid-full", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15170,7 +14700,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15625,7 +15155,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15660,18 +15190,6 @@ "description": "Get a list of outputs associated with agent policy by policy id.", "operationId": "get-fleet-agent-policies-agentpolicyid-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentPolicyId", @@ -15684,7 +15202,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15783,7 +15301,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15817,18 +15335,6 @@ "get": { "operationId": "get-fleet-agent-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "policyId", @@ -15867,7 +15373,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -15930,7 +15436,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -15964,18 +15470,6 @@ "get": { "operationId": "get-fleet-agent-status-data", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "agentsIds", @@ -16023,7 +15517,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16061,7 +15555,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16095,18 +15589,6 @@ "get": { "operationId": "get-fleet-agents", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -16193,7 +15675,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16614,7 +16096,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16646,18 +16128,6 @@ "post": { "operationId": "post-fleet-agents", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -16671,7 +16141,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16693,7 +16163,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16714,7 +16184,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16748,18 +16218,6 @@ "get": { "operationId": "get-fleet-agents-action-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -16807,7 +16265,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -16949,7 +16407,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -16983,18 +16441,6 @@ "post": { "operationId": "post-fleet-agents-actions-actionid-cancel", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17017,7 +16463,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17090,7 +16536,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17123,24 +16569,11 @@ "/api/fleet/agents/available_versions": { "get": { "operationId": "get-fleet-agents-available-versions", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17161,7 +16594,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17195,18 +16628,6 @@ "post": { "operationId": "post-fleet-agents-bulk-reassign", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17220,7 +16641,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17260,7 +16681,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17278,7 +16699,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17312,18 +16733,6 @@ "post": { "operationId": "post-fleet-agents-bulk-request-diagnostics", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17337,7 +16746,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17378,7 +16787,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17396,7 +16805,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17430,18 +16839,6 @@ "post": { "operationId": "post-fleet-agents-bulk-unenroll", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17455,7 +16852,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17501,7 +16898,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17519,7 +16916,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17553,18 +16950,6 @@ "post": { "operationId": "post-fleet-agents-bulk-update-agent-tags", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17578,7 +16963,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17626,7 +17011,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17644,7 +17029,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17678,18 +17063,6 @@ "post": { "operationId": "post-fleet-agents-bulk-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17703,7 +17076,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17759,7 +17132,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17777,7 +17150,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17812,18 +17185,6 @@ "description": "Delete a file uploaded by an agent.", "operationId": "delete-fleet-agents-files-fileid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -17846,7 +17207,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -17868,7 +17229,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17903,18 +17264,6 @@ "description": "Get a file uploaded by an agent.", "operationId": "get-fleet-agents-files-fileid-filename", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "fileId", @@ -17935,7 +17284,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "object" } @@ -17944,7 +17293,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -17977,24 +17326,11 @@ "/api/fleet/agents/setup": { "get": { "operationId": "get-fleet-agents-setup", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the agent setup status. `isReady` indicates whether the setup is ready. If the setup is not ready, `missing_requirements` lists which requirements are missing.", @@ -18046,7 +17382,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18078,18 +17414,6 @@ "post": { "operationId": "post-fleet-agents-setup", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18104,7 +17428,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the result of Fleet's `setup` lifecycle. If `isInitialized` is true, Fleet is ready to accept agent enrollment. `nonFatalErrors` may include useful insight into non-blocking issues with Fleet setup.", @@ -18143,7 +17467,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18177,18 +17501,6 @@ "get": { "operationId": "get-fleet-agents-tags", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "kuery", @@ -18210,7 +17522,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18231,7 +17543,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18266,18 +17578,6 @@ "description": "Delete an agent by ID.", "operationId": "delete-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18300,7 +17600,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18321,7 +17621,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18354,18 +17654,6 @@ "description": "Get an agent by ID.", "operationId": "get-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentId", @@ -18387,7 +17675,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18787,7 +18075,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -18820,18 +18108,6 @@ "description": "Update an agent by ID.", "operationId": "put-fleet-agents-agentid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -18853,7 +18129,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -18876,7 +18152,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19276,7 +18552,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19310,18 +18586,6 @@ "post": { "operationId": "post-fleet-agents-agentid-actions", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19343,7 +18607,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19419,7 +18683,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19492,7 +18756,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19526,18 +18790,6 @@ "post": { "operationId": "post-fleet-agents-agentid-reassign", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19559,7 +18811,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19578,7 +18830,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": {}, @@ -19589,7 +18841,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19623,18 +18875,6 @@ "post": { "operationId": "post-fleet-agents-agentid-request-diagnostics", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19656,7 +18896,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -19679,7 +18919,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19697,7 +18937,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19731,18 +18971,6 @@ "post": { "operationId": "post-fleet-agents-agentid-unenroll", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19764,7 +18992,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -19792,18 +19020,6 @@ "post": { "operationId": "post-fleet-agents-agentid-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -19825,7 +19041,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19853,7 +19069,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": {}, @@ -19864,7 +19080,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -19898,18 +19114,6 @@ "get": { "operationId": "get-fleet-agents-agentid-uploads", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "agentId", @@ -19922,7 +19126,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -19983,7 +19187,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20017,18 +19221,6 @@ "get": { "operationId": "get-fleet-check-permissions", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "fleetServerSetup", @@ -20041,7 +19233,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20067,7 +19259,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20100,24 +19292,11 @@ "/api/fleet/data_streams": { "get": { "operationId": "get-fleet-data-streams", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20224,7 +19403,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20258,18 +19437,6 @@ "get": { "operationId": "get-fleet-enrollment-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -20300,7 +19467,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20413,7 +19580,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20445,18 +19612,6 @@ "post": { "operationId": "post-fleet-enrollment-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20470,7 +19625,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20495,7 +19650,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20556,7 +19711,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20591,18 +19746,6 @@ "description": "Revoke an enrollment API key by ID by marking it as inactive.", "operationId": "delete-fleet-enrollment-api-keys-keyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20625,7 +19768,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20646,7 +19789,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20679,18 +19822,6 @@ "description": "Get an enrollment API key by ID.", "operationId": "get-fleet-enrollment-api-keys-keyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "keyId", @@ -20703,7 +19834,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20757,7 +19888,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20791,18 +19922,6 @@ "post": { "operationId": "post-fleet-epm-bulk-assets", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -20816,7 +19935,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20851,7 +19970,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -20907,7 +20026,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -20941,18 +20060,6 @@ "get": { "operationId": "get-fleet-epm-categories", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "prerelease", @@ -20973,7 +20080,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21017,7 +20124,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21051,18 +20158,6 @@ "post": { "operationId": "post-fleet-epm-custom-integrations", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -21076,7 +20171,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21125,7 +20220,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21225,7 +20320,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21259,18 +20354,6 @@ "get": { "operationId": "get-fleet-epm-data-streams", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "type", @@ -21320,7 +20403,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21350,7 +20433,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21384,18 +20467,6 @@ "get": { "operationId": "get-fleet-epm-packages", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "category", @@ -21424,7 +20495,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -21923,7 +20994,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -21955,18 +21026,6 @@ "post": { "operationId": "post-fleet-epm-packages", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -21998,7 +21057,7 @@ ], "requestBody": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "format": "binary", "type": "string" @@ -22009,7 +21068,7 @@ "responses": { "200": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "additionalProperties": false, "properties": { @@ -22109,7 +21168,7 @@ }, "400": { "content": { - "application/gzip; application/zip; Elastic-Api-Version=2023-10-31": { + "application/gzip; application/zip": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22143,18 +21202,6 @@ "post": { "operationId": "post-fleet-epm-packages-bulk", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -22176,7 +21223,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22226,7 +21273,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22386,7 +21433,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22420,18 +21467,6 @@ "get": { "operationId": "get-fleet-epm-packages-installed", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "dataStreamType", @@ -22507,7 +21542,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22626,7 +21661,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22659,24 +21694,11 @@ "/api/fleet/epm/packages/limited": { "get": { "operationId": "get-fleet-epm-packages-limited", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22697,7 +21719,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22731,18 +21753,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-stats", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -22755,7 +21765,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22782,7 +21792,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22816,18 +21826,6 @@ "delete": { "operationId": "delete-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -22866,7 +21864,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -22953,7 +21951,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -22985,18 +21983,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -23050,7 +22036,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23644,7 +22630,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -23676,18 +22662,6 @@ "post": { "operationId": "post-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -23743,7 +22717,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -23765,7 +22739,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23865,7 +22839,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -23897,18 +22871,6 @@ "put": { "operationId": "put-fleet-epm-packages-pkgname-pkgversion", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -23938,7 +22900,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -23957,7 +22919,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -24539,7 +23501,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24573,18 +23535,6 @@ "post": { "operationId": "post-fleet-epm-packages-pkgname-pkgversion-transforms-authorize", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -24622,7 +23572,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -24653,7 +23603,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -24682,7 +23632,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24716,18 +23666,6 @@ "get": { "operationId": "get-fleet-epm-packages-pkgname-pkgversion-filepath", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -24756,14 +23694,14 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": {} } } }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24797,18 +23735,6 @@ "get": { "operationId": "get-fleet-epm-templates-pkgname-pkgversion-inputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "pkgName", @@ -24859,7 +23785,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -24931,7 +23857,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -24964,24 +23890,11 @@ "/api/fleet/epm/verification_key_id": { "get": { "operationId": "get-fleet-epm-verification-key-id", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25000,7 +23913,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25033,24 +23946,11 @@ "/api/fleet/fleet_server_hosts": { "get": { "operationId": "get-fleet-fleet-server-hosts", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25119,7 +24019,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25151,18 +24051,6 @@ "post": { "operationId": "post-fleet-fleet-server-hosts", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25176,7 +24064,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25221,7 +24109,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25275,7 +24163,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25310,18 +24198,6 @@ "description": "Delete a Fleet Server host by ID.", "operationId": "delete-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25344,7 +24220,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25362,7 +24238,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25395,18 +24271,6 @@ "description": "Get a Fleet Server host by ID.", "operationId": "get-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "itemId", @@ -25419,7 +24283,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25473,7 +24337,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25506,18 +24370,6 @@ "description": "Update a Fleet Server host by ID.", "operationId": "put-fleet-fleet-server-hosts-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25539,7 +24391,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25575,7 +24427,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25629,7 +24481,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25663,18 +24515,6 @@ "post": { "operationId": "post-fleet-health-check", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -25688,7 +24528,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25707,7 +24547,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25731,7 +24571,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25756,7 +24596,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25790,18 +24630,6 @@ "get": { "operationId": "get-fleet-kubernetes", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "download", @@ -25830,7 +24658,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -25848,7 +24676,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25882,18 +24710,6 @@ "get": { "operationId": "get-fleet-kubernetes-download", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "download", @@ -25922,7 +24738,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "type": "string" } @@ -25931,7 +24747,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25956,7 +24772,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -25990,18 +24806,6 @@ "post": { "operationId": "post-fleet-logstash-api-keys", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -26016,7 +24820,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -26034,7 +24838,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26068,18 +24872,6 @@ "post": { "operationId": "post-fleet-message-signing-service-rotate-key-pair", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -26103,7 +24895,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -26121,7 +24913,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26146,7 +24938,7 @@ }, "500": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -26179,24 +24971,11 @@ "/api/fleet/outputs": { "get": { "operationId": "get-fleet-outputs", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -27244,7 +26023,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -27276,18 +26055,6 @@ "post": { "operationId": "post-fleet-outputs", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -27301,7 +26068,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -28326,7 +27093,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -29359,7 +28126,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29394,18 +28161,6 @@ "description": "Delete output by ID.", "operationId": "delete-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -29428,7 +28183,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -29446,7 +28201,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29471,7 +28226,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -29504,18 +28259,6 @@ "description": "Get output by ID.", "operationId": "get-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "outputId", @@ -29528,7 +28271,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -30561,7 +29304,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -30594,18 +29337,6 @@ "description": "Update output by ID.", "operationId": "put-fleet-outputs-outputid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -30627,7 +29358,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -31628,7 +30359,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -32661,7 +31392,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -32695,18 +31426,6 @@ "get": { "operationId": "get-fleet-outputs-outputid-health", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "outputId", @@ -32719,7 +31438,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -32748,7 +31467,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -32782,18 +31501,6 @@ "get": { "operationId": "get-fleet-package-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "query", "name": "page", @@ -32870,7 +31577,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -33470,7 +32177,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -33502,18 +32209,6 @@ "post": { "operationId": "post-fleet-package-policies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -33539,7 +32234,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -34149,7 +32844,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -34734,7 +33429,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -34759,7 +33454,7 @@ }, "409": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -34793,18 +33488,6 @@ "post": { "operationId": "post-fleet-package-policies-bulk-get", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -34830,7 +33513,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -34856,7 +33539,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35444,7 +34127,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35469,7 +34152,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35496,18 +34179,6 @@ "post": { "operationId": "post-fleet-package-policies-delete", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35521,7 +34192,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35546,7 +34217,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -35665,7 +34336,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35700,18 +34371,6 @@ "description": "Upgrade a package policy to a newer package version.", "operationId": "post-fleet-package-policies-upgrade", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35725,7 +34384,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35747,7 +34406,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -35790,7 +34449,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -35824,18 +34483,6 @@ "post": { "operationId": "post-fleet-package-policies-upgrade-dryrun", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -35849,7 +34496,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -35874,7 +34521,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "items": { "additionalProperties": false, @@ -36987,7 +35634,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37022,18 +35669,6 @@ "description": "Delete a package policy by ID.", "operationId": "delete-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -37064,7 +35699,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37082,7 +35717,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37115,18 +35750,6 @@ "description": "Get a package policy by ID.", "operationId": "get-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "packagePolicyId", @@ -37151,7 +35774,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37736,7 +36359,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -37761,7 +36384,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -37787,18 +36410,6 @@ "description": "Update a package policy by ID.", "operationId": "put-fleet-package-policies-packagepolicyid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -37832,7 +36443,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -38434,7 +37045,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39019,7 +37630,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39044,7 +37655,7 @@ }, "403": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39077,24 +37688,11 @@ "/api/fleet/proxies": { "get": { "operationId": "get-fleet-proxies", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39177,7 +37775,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39209,18 +37807,6 @@ "post": { "operationId": "post-fleet-proxies", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39234,7 +37820,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39293,7 +37879,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39361,7 +37947,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39396,18 +37982,6 @@ "description": "Delete a proxy by ID", "operationId": "delete-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39430,7 +38004,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39448,7 +38022,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39481,18 +38055,6 @@ "description": "Get a proxy by ID.", "operationId": "get-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "itemId", @@ -39505,7 +38067,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39573,7 +38135,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39606,18 +38168,6 @@ "description": "Update a proxy by ID.", "operationId": "put-fleet-proxies-itemid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39639,7 +38189,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39693,7 +38243,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39761,7 +38311,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39795,18 +38345,6 @@ "post": { "operationId": "post-fleet-service-tokens", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -39820,7 +38358,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "nullable": true, @@ -39838,7 +38376,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39860,7 +38398,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -39893,24 +38431,11 @@ "/api/fleet/settings": { "get": { "operationId": "get-fleet-settings", - "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - } - ], + "parameters": [], "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -39989,7 +38514,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40014,7 +38539,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40039,18 +38564,6 @@ "put": { "operationId": "put-fleet-settings", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40064,7 +38577,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40112,7 +38625,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40191,7 +38704,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40216,7 +38729,7 @@ }, "404": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40243,18 +38756,6 @@ "post": { "operationId": "post-fleet-setup", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40269,7 +38770,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "A summary of the result of Fleet's `setup` lifecycle. If `isInitialized` is true, Fleet is ready to accept agent enrollment. `nonFatalErrors` may include useful insight into non-blocking issues with Fleet setup.", @@ -40308,7 +38809,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40333,7 +38834,7 @@ }, "500": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Internal Server Error", @@ -40362,18 +38863,6 @@ "description": "List the metadata for the latest uninstall tokens per agent policy.", "operationId": "get-fleet-uninstall-tokens", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Partial match filtering for policy IDs", "in": "query", @@ -40416,7 +38905,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40476,7 +38965,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40511,18 +39000,6 @@ "description": "Get one decrypted uninstall token by its ID.", "operationId": "get-fleet-uninstall-tokens-uninstalltokenid", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "in": "path", "name": "uninstallTokenId", @@ -40535,7 +39012,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -40584,7 +39061,7 @@ }, "400": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "description": "Generic Error", @@ -40618,18 +39095,6 @@ "get": { "operationId": "get-security-role", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "If `true` and the response contains any privileges that are associated with deprecated features, they are omitted in favor of details about the appropriate replacement feature privileges.", "in": "query", @@ -40655,18 +39120,6 @@ "delete": { "operationId": "delete-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40700,18 +39153,6 @@ "get": { "operationId": "get-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The role name.", "in": "path", @@ -40746,18 +39187,6 @@ "description": "Create a new Kibana role or update the attributes of an existing role. Kibana roles are stored in the Elasticsearch native realm.", "operationId": "put-security-role-name", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -40792,7 +39221,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41065,18 +39494,6 @@ "post": { "operationId": "post-security-roles", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41090,7 +39507,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41375,18 +39792,6 @@ "get": { "operationId": "get-spaces-space", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Specifies which authorization checks are applied to the API call. The default value is `any`.", "in": "query", @@ -41455,18 +39860,6 @@ "post": { "operationId": "post-spaces-space", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41480,7 +39873,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41547,18 +39940,6 @@ "description": "When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.", "operationId": "delete-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41595,18 +39976,6 @@ "get": { "operationId": "get-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "The space identifier.", "in": "path", @@ -41630,18 +39999,6 @@ "put": { "operationId": "put-spaces-space-id", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "A required header to protect against CSRF attacks", "in": "header", @@ -41664,7 +40021,7 @@ ], "requestBody": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "additionalProperties": false, "properties": { @@ -41730,18 +40087,6 @@ "get": { "operationId": "get-status", "parameters": [ - { - "description": "The version of the API to use", - "in": "header", - "name": "elastic-api-version", - "schema": { - "default": "2023-10-31", - "enum": [ - "2023-10-31" - ], - "type": "string" - } - }, { "description": "Set to \"true\" to get the response in v7 format.", "in": "query", @@ -41764,7 +40109,7 @@ "responses": { "200": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { @@ -41782,7 +40127,7 @@ }, "503": { "content": { - "application/json; Elastic-Api-Version=2023-10-31": { + "application/json": { "schema": { "anyOf": [ { diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 72fc1b093903a..bf3c74d906cef 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -154,14 +154,6 @@ paths: description: You do not need any Kibana feature privileges to run this API. operationId: get-actions-connector-types parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases). in: query name: feature_id @@ -185,14 +177,6 @@ paths: description: 'WARNING: When you delete a connector, it cannot be recovered.' operationId: delete-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -216,14 +200,6 @@ paths: get: operationId: get-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: An identifier for the connector. in: path name: id @@ -280,14 +256,6 @@ paths: post: operationId: post-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -435,14 +403,6 @@ paths: put: operationId: put-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -573,14 +533,6 @@ paths: description: You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems. operationId: post-actions-connector-id-execute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -697,15 +649,7 @@ paths: /api/actions/connectors: get: operationId: get-actions-connectors - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': description: Indicates a successful call. @@ -722,14 +666,6 @@ paths: delete: operationId: delete-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -759,14 +695,6 @@ paths: get: operationId: get-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The identifier for the rule. in: path name: id @@ -1420,14 +1348,6 @@ paths: post: operationId: post-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -2344,14 +2264,6 @@ paths: put: operationId: put-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3227,14 +3139,6 @@ paths: post: operationId: post-alerting-rule-id-disable parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3277,14 +3181,6 @@ paths: post: operationId: post-alerting-rule-id-enable parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3315,14 +3211,6 @@ paths: post: operationId: post-alerting-rule-id-mute-all parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3353,14 +3241,6 @@ paths: post: operationId: post-alerting-rule-id-unmute-all parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3391,14 +3271,6 @@ paths: post: operationId: post-alerting-rule-id-update-api-key parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3431,14 +3303,6 @@ paths: post: operationId: post-alerting-rule-rule-id-alert-alert-id-mute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3475,14 +3339,6 @@ paths: post: operationId: post-alerting-rule-rule-id-alert-alert-id-unmute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3519,14 +3375,6 @@ paths: get: operationId: get-alerting-rules-find parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The number of rules to return per page. in: query name: per_page @@ -5201,14 +5049,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: get-dashboards-dashboard parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The page number to return. Default is "1". in: query name: page @@ -5332,14 +5172,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: delete-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -5363,14 +5195,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: get-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A unique identifier for the dashboard. in: path name: id @@ -5835,14 +5659,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: post-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -6677,14 +6493,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: put-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -11330,15 +11138,7 @@ paths: /api/fleet/agent_download_sources: get: operationId: get-fleet-agent-download-sources - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -11405,14 +11205,6 @@ paths: post: operationId: post-fleet-agent-download-sources parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -11501,14 +11293,6 @@ paths: description: Delete an agent binary download source by ID. operationId: delete-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -11557,14 +11341,6 @@ paths: description: Get an agent binary download source by ID. operationId: get-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: sourceId required: true @@ -11626,14 +11402,6 @@ paths: description: Update an agent binary download source by ID. operationId: put-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -11726,14 +11494,6 @@ paths: get: operationId: get-fleet-agent-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -12313,14 +12073,6 @@ paths: post: operationId: post-fleet-agent-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -13014,14 +12766,6 @@ paths: post: operationId: post-fleet-agent-policies-bulk-get parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -13568,14 +13312,6 @@ paths: description: Get an agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -14098,14 +13834,6 @@ paths: description: Update an agent policy by ID. operationId: put-fleet-agent-policies-agentpolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -14808,14 +14536,6 @@ paths: description: Copy an agent policy by ID. operationId: post-fleet-agent-policies-agentpolicyid-copy parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -15360,14 +15080,6 @@ paths: description: Download an agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid-download parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -15435,14 +15147,6 @@ paths: description: Get a full agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid-full parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -15792,14 +15496,6 @@ paths: description: Get a list of outputs associated with agent policy by policy id. operationId: get-fleet-agent-policies-agentpolicyid-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -15897,14 +15593,6 @@ paths: description: Delete an agent policy by ID. operationId: post-fleet-agent-policies-delete parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -15966,14 +15654,6 @@ paths: description: Get a list of outputs associated with agent policies. operationId: post-fleet-agent-policies-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -16088,14 +15768,6 @@ paths: get: operationId: get-fleet-agent-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: policyId required: false @@ -16184,14 +15856,6 @@ paths: get: operationId: get-fleet-agent-status-data parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: agentsIds required: true @@ -16267,14 +15931,6 @@ paths: get: operationId: get-fleet-agents parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -16654,14 +16310,6 @@ paths: post: operationId: post-fleet-agents parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -16721,14 +16369,6 @@ paths: description: Delete an agent by ID. operationId: delete-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -16779,14 +16419,6 @@ paths: description: Get an agent by ID. operationId: get-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentId required: true @@ -17109,14 +16741,6 @@ paths: description: Update an agent by ID. operationId: put-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17454,14 +17078,6 @@ paths: post: operationId: post-fleet-agents-agentid-actions parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17599,14 +17215,6 @@ paths: post: operationId: post-fleet-agents-agentid-reassign parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17662,84 +17270,68 @@ paths: post: operationId: post-fleet-agents-agentid-request-diagnostics parameters: - - description: The version of the API to use + - description: A required header to protect against CSRF attacks in: header - name: elastic-api-version + name: kbn-xsrf + required: true + schema: + example: 'true' + type: string + - in: path + name: agentId + required: true schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - - description: A required header to protect against CSRF attacks - in: header - name: kbn-xsrf - required: true - schema: - example: 'true' - type: string - - in: path - name: agentId - required: true - schema: - type: string - requestBody: - content: - application/json; Elastic-Api-Version=2023-10-31: - schema: - additionalProperties: false - nullable: true - type: object - properties: - additional_metrics: - items: - enum: - - CPU - type: string - type: array - responses: - '200': - content: - application/json; Elastic-Api-Version=2023-10-31: - schema: - additionalProperties: false - type: object - properties: - actionId: - type: string - required: - - actionId - '400': - content: - application/json; Elastic-Api-Version=2023-10-31: - schema: - additionalProperties: false - description: Generic Error - type: object - properties: - error: - type: string - message: - type: string - statusCode: - type: number - required: - - message - summary: Request agent diagnostics - tags: - - Elastic Agent actions - x-beta: true - /api/fleet/agents/{agentId}/unenroll: - post: - operationId: post-fleet-agents-agentid-unenroll - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' type: string + requestBody: + content: + application/json; Elastic-Api-Version=2023-10-31: + schema: + additionalProperties: false + nullable: true + type: object + properties: + additional_metrics: + items: + enum: + - CPU + type: string + type: array + responses: + '200': + content: + application/json; Elastic-Api-Version=2023-10-31: + schema: + additionalProperties: false + type: object + properties: + actionId: + type: string + required: + - actionId + '400': + content: + application/json; Elastic-Api-Version=2023-10-31: + schema: + additionalProperties: false + description: Generic Error + type: object + properties: + error: + type: string + message: + type: string + statusCode: + type: number + required: + - message + summary: Request agent diagnostics + tags: + - Elastic Agent actions + x-beta: true + /api/fleet/agents/{agentId}/unenroll: + post: + operationId: post-fleet-agents-agentid-unenroll + parameters: - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17773,14 +17365,6 @@ paths: post: operationId: post-fleet-agents-agentid-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17842,14 +17426,6 @@ paths: get: operationId: get-fleet-agents-agentid-uploads parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentId required: true @@ -17923,14 +17499,6 @@ paths: get: operationId: get-fleet-agents-action-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -18089,14 +17657,6 @@ paths: post: operationId: post-fleet-agents-actions-actionid-cancel parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18183,15 +17743,7 @@ paths: /api/fleet/agents/available_versions: get: operationId: get-fleet-agents-available-versions - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -18230,14 +17782,6 @@ paths: post: operationId: post-fleet-agents-bulk-reassign parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18304,14 +17848,6 @@ paths: post: operationId: post-fleet-agents-bulk-request-diagnostics parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18378,14 +17914,6 @@ paths: post: operationId: post-fleet-agents-bulk-unenroll parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18457,14 +17985,6 @@ paths: post: operationId: post-fleet-agents-bulk-update-agent-tags parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18536,14 +18056,6 @@ paths: post: operationId: post-fleet-agents-bulk-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18622,14 +18134,6 @@ paths: description: Delete a file uploaded by an agent. operationId: delete-fleet-agents-files-fileid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18682,14 +18186,6 @@ paths: description: Get a file uploaded by an agent. operationId: get-fleet-agents-files-fileid-filename parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: fileId required: true @@ -18729,15 +18225,7 @@ paths: /api/fleet/agents/setup: get: operationId: get-fleet-agents-setup - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -18798,14 +18286,6 @@ paths: post: operationId: post-fleet-agents-setup parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18864,14 +18344,6 @@ paths: get: operationId: get-fleet-agents-tags parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: kuery required: false @@ -18921,14 +18393,6 @@ paths: get: operationId: get-fleet-check-permissions parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: fleetServerSetup required: false @@ -18975,15 +18439,7 @@ paths: /api/fleet/data_streams: get: operationId: get-fleet-data-streams - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -19081,14 +18537,6 @@ paths: get: operationId: get-fleet-enrollment-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -19212,14 +18660,6 @@ paths: post: operationId: post-fleet-enrollment-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19311,14 +18751,6 @@ paths: description: Revoke an enrollment API key by ID by marking it as inactive. operationId: delete-fleet-enrollment-api-keys-keyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19369,14 +18801,6 @@ paths: description: Get an enrollment API key by ID. operationId: get-fleet-enrollment-api-keys-keyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: keyId required: true @@ -19445,14 +18869,6 @@ paths: post: operationId: post-fleet-epm-bulk-assets parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19544,14 +18960,6 @@ paths: get: operationId: get-fleet-epm-categories parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: prerelease required: false @@ -19616,14 +19024,6 @@ paths: post: operationId: post-fleet-epm-custom-integrations parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19759,14 +19159,6 @@ paths: get: operationId: get-fleet-epm-data-streams parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: type required: false @@ -19842,14 +19234,6 @@ paths: get: operationId: get-fleet-epm-packages parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: category required: false @@ -20242,14 +19626,6 @@ paths: post: operationId: post-fleet-epm-packages parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20370,14 +19746,6 @@ paths: post: operationId: post-fleet-epm-packages-bulk parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20553,14 +19921,6 @@ paths: delete: operationId: delete-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20668,14 +20028,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -21148,14 +20500,6 @@ paths: post: operationId: post-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21298,14 +20642,6 @@ paths: put: operationId: put-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21768,14 +21104,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-pkgversion-filepath parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -21820,14 +21148,6 @@ paths: post: operationId: post-fleet-epm-packages-pkgname-pkgversion-transforms-authorize parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21913,14 +21233,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-stats parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -21968,14 +21280,6 @@ paths: get: operationId: get-fleet-epm-packages-installed parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: dataStreamType required: false @@ -22121,15 +21425,7 @@ paths: /api/fleet/epm/packages/limited: get: operationId: get-fleet-epm-packages-limited - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -22168,14 +21464,6 @@ paths: get: operationId: get-fleet-epm-templates-pkgname-pkgversion-inputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -22275,15 +21563,7 @@ paths: /api/fleet/epm/verification_key_id: get: operationId: get-fleet-epm-verification-key-id - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -22320,15 +21600,7 @@ paths: /api/fleet/fleet_server_hosts: get: operationId: get-fleet-fleet-server-hosts - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -22401,14 +21673,6 @@ paths: post: operationId: post-fleet-fleet-server-hosts parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22509,14 +21773,6 @@ paths: description: Delete a Fleet Server host by ID. operationId: delete-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22565,14 +21821,6 @@ paths: description: Get a Fleet Server host by ID. operationId: get-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: itemId required: true @@ -22640,14 +21888,6 @@ paths: description: Update a Fleet Server host by ID. operationId: put-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22745,14 +21985,6 @@ paths: post: operationId: post-fleet-health-check parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22827,14 +22059,6 @@ paths: get: operationId: get-fleet-kubernetes parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: download required: false @@ -22886,14 +22110,6 @@ paths: get: operationId: get-fleet-kubernetes-download parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: download required: false @@ -22955,14 +22171,6 @@ paths: post: operationId: post-fleet-logstash-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -23006,14 +22214,6 @@ paths: post: operationId: post-fleet-message-signing-service-rotate-key-pair parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -23078,15 +22278,7 @@ paths: /api/fleet/outputs: get: operationId: get-fleet-outputs - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -23812,14 +23004,6 @@ paths: post: operationId: post-fleet-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25227,14 +24411,6 @@ paths: description: Delete output by ID. operationId: delete-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25299,14 +24475,6 @@ paths: description: Get output by ID. operationId: get-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: outputId required: true @@ -26027,14 +25195,6 @@ paths: description: Update output by ID. operationId: put-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -27425,14 +26585,6 @@ paths: get: operationId: get-fleet-outputs-outputid-health parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: outputId required: true @@ -27483,14 +26635,6 @@ paths: get: operationId: get-fleet-package-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -27956,14 +27100,6 @@ paths: post: operationId: post-fleet-package-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -28807,14 +27943,6 @@ paths: post: operationId: post-fleet-package-policies-bulk-get parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -29269,14 +28397,6 @@ paths: description: Delete a package policy by ID. operationId: delete-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -29330,14 +28450,6 @@ paths: description: Get a package policy by ID. operationId: get-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: packagePolicyId required: true @@ -29771,14 +28883,6 @@ paths: description: Update a package policy by ID. operationId: put-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -30620,14 +29724,6 @@ paths: post: operationId: post-fleet-package-policies-delete parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -30758,14 +29854,6 @@ paths: description: Upgrade a package policy to a newer package version. operationId: post-fleet-package-policies-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -30839,14 +29927,6 @@ paths: post: operationId: post-fleet-package-policies-upgrade-dryrun parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -31639,15 +30719,7 @@ paths: /api/fleet/proxies: get: operationId: get-fleet-proxies - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -31726,14 +30798,6 @@ paths: post: operationId: post-fleet-proxies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -31846,14 +30910,6 @@ paths: description: Delete a proxy by ID operationId: delete-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -31902,14 +30958,6 @@ paths: description: Get a proxy by ID. operationId: get-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: itemId required: true @@ -31983,14 +31031,6 @@ paths: description: Update a proxy by ID. operationId: put-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32104,14 +31144,6 @@ paths: post: operationId: post-fleet-service-tokens parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32168,15 +31200,7 @@ paths: /api/fleet/settings: get: operationId: get-fleet-settings - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -32265,14 +31289,6 @@ paths: put: operationId: put-fleet-settings parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32400,14 +31416,6 @@ paths: post: operationId: post-fleet-setup parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32479,14 +31487,6 @@ paths: description: List the metadata for the latest uninstall tokens per agent policy. operationId: get-fleet-uninstall-tokens parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Partial match filtering for policy IDs in: query name: policyId @@ -32580,14 +31580,6 @@ paths: description: Get one decrypted uninstall token by its ID. operationId: get-fleet-uninstall-tokens-uninstalltokenid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: uninstallTokenId required: true @@ -35225,14 +34217,6 @@ paths: get: operationId: get-security-role parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: If `true` and the response contains any privileges that are associated with deprecated features, they are omitted in favor of details about the appropriate replacement feature privileges. in: query name: replaceDeprecatedPrivileges @@ -35250,14 +34234,6 @@ paths: delete: operationId: delete-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35281,14 +34257,6 @@ paths: get: operationId: get-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The role name. in: path name: name @@ -35313,14 +34281,6 @@ paths: description: Create a new Kibana role or update the attributes of an existing role. Kibana roles are stored in the Elasticsearch native realm. operationId: put-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35528,14 +34488,6 @@ paths: post: operationId: post-security-roles parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35736,14 +34688,6 @@ paths: get: operationId: get-spaces-space parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Specifies which authorization checks are applied to the API call. The default value is `any`. in: query name: purpose @@ -35791,14 +34735,6 @@ paths: post: operationId: post-spaces-space parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35859,14 +34795,6 @@ paths: description: When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone. operationId: delete-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35892,14 +34820,6 @@ paths: get: operationId: get-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The space identifier. in: path name: id @@ -35921,14 +34841,6 @@ paths: put: operationId: put-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35994,14 +34906,6 @@ paths: get: operationId: get-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Set to "true" to get the response in v7 format. in: query name: v7format diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 3c56597469133..aea9bacebd061 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -173,14 +173,6 @@ paths: description: You do not need any Kibana feature privileges to run this API. operationId: get-actions-connector-types parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases). in: query name: feature_id @@ -203,14 +195,6 @@ paths: description: 'WARNING: When you delete a connector, it cannot be recovered.' operationId: delete-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -233,14 +217,6 @@ paths: get: operationId: get-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: An identifier for the connector. in: path name: id @@ -296,14 +272,6 @@ paths: post: operationId: post-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -450,14 +418,6 @@ paths: put: operationId: put-actions-connector-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -587,14 +547,6 @@ paths: description: You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems. operationId: post-actions-connector-id-execute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -710,15 +662,7 @@ paths: /api/actions/connectors: get: operationId: get-actions-connectors - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': description: Indicates a successful call. @@ -1076,14 +1020,6 @@ paths: delete: operationId: delete-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -1112,14 +1048,6 @@ paths: get: operationId: get-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The identifier for the rule. in: path name: id @@ -1772,14 +1700,6 @@ paths: post: operationId: post-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -2695,14 +2615,6 @@ paths: put: operationId: put-alerting-rule-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3577,14 +3489,6 @@ paths: post: operationId: post-alerting-rule-id-disable parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3626,14 +3530,6 @@ paths: post: operationId: post-alerting-rule-id-enable parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3663,14 +3559,6 @@ paths: post: operationId: post-alerting-rule-id-mute-all parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3700,14 +3588,6 @@ paths: post: operationId: post-alerting-rule-id-unmute-all parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3737,14 +3617,6 @@ paths: post: operationId: post-alerting-rule-id-update-api-key parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3776,14 +3648,6 @@ paths: post: operationId: post-alerting-rule-rule-id-alert-alert-id-mute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3819,14 +3683,6 @@ paths: post: operationId: post-alerting-rule-rule-id-alert-alert-id-unmute parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -3862,14 +3718,6 @@ paths: get: operationId: get-alerting-rules-find parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The number of rules to return per page. in: query name: per_page @@ -7471,14 +7319,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: get-dashboards-dashboard parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The page number to return. Default is "1". in: query name: page @@ -7601,14 +7441,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: delete-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -7631,14 +7463,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: get-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A unique identifier for the dashboard. in: path name: id @@ -8102,14 +7926,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: post-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -8943,14 +8759,6 @@ paths: description: This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. operationId: put-dashboards-dashboard-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -14191,15 +13999,7 @@ paths: /api/fleet/agent_download_sources: get: operationId: get-fleet-agent-download-sources - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -14265,14 +14065,6 @@ paths: post: operationId: post-fleet-agent-download-sources parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -14360,14 +14152,6 @@ paths: description: Delete an agent binary download source by ID. operationId: delete-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -14415,14 +14199,6 @@ paths: description: Get an agent binary download source by ID. operationId: get-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: sourceId required: true @@ -14483,14 +14259,6 @@ paths: description: Update an agent binary download source by ID. operationId: put-fleet-agent-download-sources-sourceid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -14582,14 +14350,6 @@ paths: get: operationId: get-fleet-agent-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -15168,14 +14928,6 @@ paths: post: operationId: post-fleet-agent-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -15868,14 +15620,6 @@ paths: post: operationId: post-fleet-agent-policies-bulk-get parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -16421,14 +16165,6 @@ paths: description: Get an agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -16950,14 +16686,6 @@ paths: description: Update an agent policy by ID. operationId: put-fleet-agent-policies-agentpolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -17659,14 +17387,6 @@ paths: description: Copy an agent policy by ID. operationId: post-fleet-agent-policies-agentpolicyid-copy parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18210,14 +17930,6 @@ paths: description: Download an agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid-download parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -18284,14 +17996,6 @@ paths: description: Get a full agent policy by ID. operationId: get-fleet-agent-policies-agentpolicyid-full parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -18640,14 +18344,6 @@ paths: description: Get a list of outputs associated with agent policy by policy id. operationId: get-fleet-agent-policies-agentpolicyid-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentPolicyId required: true @@ -18744,14 +18440,6 @@ paths: description: Delete an agent policy by ID. operationId: post-fleet-agent-policies-delete parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18812,14 +18500,6 @@ paths: description: Get a list of outputs associated with agent policies. operationId: post-fleet-agent-policies-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -18933,14 +18613,6 @@ paths: get: operationId: get-fleet-agent-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: policyId required: false @@ -19028,14 +18700,6 @@ paths: get: operationId: get-fleet-agent-status-data parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: agentsIds required: true @@ -19110,14 +18774,6 @@ paths: get: operationId: get-fleet-agents parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -19496,14 +19152,6 @@ paths: post: operationId: post-fleet-agents parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19562,14 +19210,6 @@ paths: description: Delete an agent by ID. operationId: delete-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -19619,14 +19259,6 @@ paths: description: Get an agent by ID. operationId: get-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentId required: true @@ -19948,14 +19580,6 @@ paths: description: Update an agent by ID. operationId: put-fleet-agents-agentid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20292,14 +19916,6 @@ paths: post: operationId: post-fleet-agents-agentid-actions parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20436,14 +20052,6 @@ paths: post: operationId: post-fleet-agents-agentid-reassign parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20498,14 +20106,6 @@ paths: post: operationId: post-fleet-agents-agentid-request-diagnostics parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20567,14 +20167,6 @@ paths: post: operationId: post-fleet-agents-agentid-unenroll parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20607,14 +20199,6 @@ paths: post: operationId: post-fleet-agents-agentid-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -20675,14 +20259,6 @@ paths: get: operationId: get-fleet-agents-agentid-uploads parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: agentId required: true @@ -20755,14 +20331,6 @@ paths: get: operationId: get-fleet-agents-action-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -20920,14 +20488,6 @@ paths: post: operationId: post-fleet-agents-actions-actionid-cancel parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21013,15 +20573,7 @@ paths: /api/fleet/agents/available_versions: get: operationId: get-fleet-agents-available-versions - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -21059,14 +20611,6 @@ paths: post: operationId: post-fleet-agents-bulk-reassign parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21132,14 +20676,6 @@ paths: post: operationId: post-fleet-agents-bulk-request-diagnostics parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21205,14 +20741,6 @@ paths: post: operationId: post-fleet-agents-bulk-unenroll parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21283,14 +20811,6 @@ paths: post: operationId: post-fleet-agents-bulk-update-agent-tags parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21361,14 +20881,6 @@ paths: post: operationId: post-fleet-agents-bulk-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21446,14 +20958,6 @@ paths: description: Delete a file uploaded by an agent. operationId: delete-fleet-agents-files-fileid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21505,14 +21009,6 @@ paths: description: Get a file uploaded by an agent. operationId: get-fleet-agents-files-fileid-filename parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: fileId required: true @@ -21551,15 +21047,7 @@ paths: /api/fleet/agents/setup: get: operationId: get-fleet-agents-setup - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -21619,14 +21107,6 @@ paths: post: operationId: post-fleet-agents-setup parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -21684,14 +21164,6 @@ paths: get: operationId: get-fleet-agents-tags parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: kuery required: false @@ -21740,14 +21212,6 @@ paths: get: operationId: get-fleet-check-permissions parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: fleetServerSetup required: false @@ -21793,15 +21257,7 @@ paths: /api/fleet/data_streams: get: operationId: get-fleet-data-streams - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -21898,14 +21354,6 @@ paths: get: operationId: get-fleet-enrollment-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -22028,14 +21476,6 @@ paths: post: operationId: post-fleet-enrollment-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22126,14 +21566,6 @@ paths: description: Revoke an enrollment API key by ID by marking it as inactive. operationId: delete-fleet-enrollment-api-keys-keyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22183,14 +21615,6 @@ paths: description: Get an enrollment API key by ID. operationId: get-fleet-enrollment-api-keys-keyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: keyId required: true @@ -22258,14 +21682,6 @@ paths: post: operationId: post-fleet-epm-bulk-assets parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22356,14 +21772,6 @@ paths: get: operationId: get-fleet-epm-categories parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: prerelease required: false @@ -22427,14 +21835,6 @@ paths: post: operationId: post-fleet-epm-custom-integrations parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -22569,14 +21969,6 @@ paths: get: operationId: get-fleet-epm-data-streams parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: type required: false @@ -22651,14 +22043,6 @@ paths: get: operationId: get-fleet-epm-packages parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: category required: false @@ -23050,14 +22434,6 @@ paths: post: operationId: post-fleet-epm-packages parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -23177,14 +22553,6 @@ paths: post: operationId: post-fleet-epm-packages-bulk parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -23359,14 +22727,6 @@ paths: delete: operationId: delete-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -23473,14 +22833,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -23952,14 +23304,6 @@ paths: post: operationId: post-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -24101,14 +23445,6 @@ paths: put: operationId: put-fleet-epm-packages-pkgname-pkgversion parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -24570,14 +23906,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-pkgversion-filepath parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -24621,14 +23949,6 @@ paths: post: operationId: post-fleet-epm-packages-pkgname-pkgversion-transforms-authorize parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -24713,14 +24033,6 @@ paths: get: operationId: get-fleet-epm-packages-pkgname-stats parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -24767,14 +24079,6 @@ paths: get: operationId: get-fleet-epm-packages-installed parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: dataStreamType required: false @@ -24919,15 +24223,7 @@ paths: /api/fleet/epm/packages/limited: get: operationId: get-fleet-epm-packages-limited - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -24965,14 +24261,6 @@ paths: get: operationId: get-fleet-epm-templates-pkgname-pkgversion-inputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: pkgName required: true @@ -25071,15 +24359,7 @@ paths: /api/fleet/epm/verification_key_id: get: operationId: get-fleet-epm-verification-key-id - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -25115,15 +24395,7 @@ paths: /api/fleet/fleet_server_hosts: get: operationId: get-fleet-fleet-server-hosts - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -25195,14 +24467,6 @@ paths: post: operationId: post-fleet-fleet-server-hosts parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25302,14 +24566,6 @@ paths: description: Delete a Fleet Server host by ID. operationId: delete-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25357,14 +24613,6 @@ paths: description: Get a Fleet Server host by ID. operationId: get-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: itemId required: true @@ -25431,14 +24679,6 @@ paths: description: Update a Fleet Server host by ID. operationId: put-fleet-fleet-server-hosts-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25535,14 +24775,6 @@ paths: post: operationId: post-fleet-health-check parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25616,14 +24848,6 @@ paths: get: operationId: get-fleet-kubernetes parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: download required: false @@ -25674,14 +24898,6 @@ paths: get: operationId: get-fleet-kubernetes-download parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: download required: false @@ -25742,14 +24958,6 @@ paths: post: operationId: post-fleet-logstash-api-keys parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25792,14 +25000,6 @@ paths: post: operationId: post-fleet-message-signing-service-rotate-key-pair parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -25863,15 +25063,7 @@ paths: /api/fleet/outputs: get: operationId: get-fleet-outputs - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -26596,14 +25788,6 @@ paths: post: operationId: post-fleet-outputs parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -28010,14 +27194,6 @@ paths: description: Delete output by ID. operationId: delete-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -28081,14 +27257,6 @@ paths: description: Get output by ID. operationId: get-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: outputId required: true @@ -28808,14 +27976,6 @@ paths: description: Update output by ID. operationId: put-fleet-outputs-outputid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -30205,14 +29365,6 @@ paths: get: operationId: get-fleet-outputs-outputid-health parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: outputId required: true @@ -30262,14 +29414,6 @@ paths: get: operationId: get-fleet-package-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: query name: page required: false @@ -30734,14 +29878,6 @@ paths: post: operationId: post-fleet-package-policies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -31584,14 +30720,6 @@ paths: post: operationId: post-fleet-package-policies-bulk-get parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32045,14 +31173,6 @@ paths: description: Delete a package policy by ID. operationId: delete-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -32105,14 +31225,6 @@ paths: description: Get a package policy by ID. operationId: get-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: packagePolicyId required: true @@ -32545,14 +31657,6 @@ paths: description: Update a package policy by ID. operationId: put-fleet-package-policies-packagepolicyid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -33393,14 +32497,6 @@ paths: post: operationId: post-fleet-package-policies-delete parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -33530,14 +32626,6 @@ paths: description: Upgrade a package policy to a newer package version. operationId: post-fleet-package-policies-upgrade parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -33610,14 +32698,6 @@ paths: post: operationId: post-fleet-package-policies-upgrade-dryrun parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -34409,15 +33489,7 @@ paths: /api/fleet/proxies: get: operationId: get-fleet-proxies - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -34495,14 +33567,6 @@ paths: post: operationId: post-fleet-proxies parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -34614,14 +33678,6 @@ paths: description: Delete a proxy by ID operationId: delete-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -34669,14 +33725,6 @@ paths: description: Get a proxy by ID. operationId: get-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: itemId required: true @@ -34749,14 +33797,6 @@ paths: description: Update a proxy by ID. operationId: put-fleet-proxies-itemid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -34869,14 +33909,6 @@ paths: post: operationId: post-fleet-service-tokens parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -34932,15 +33964,7 @@ paths: /api/fleet/settings: get: operationId: get-fleet-settings - parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string + parameters: [] responses: '200': content: @@ -35028,14 +34052,6 @@ paths: put: operationId: put-fleet-settings parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35162,14 +34178,6 @@ paths: post: operationId: post-fleet-setup parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -35240,14 +34248,6 @@ paths: description: List the metadata for the latest uninstall tokens per agent policy. operationId: get-fleet-uninstall-tokens parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Partial match filtering for policy IDs in: query name: policyId @@ -35340,14 +34340,6 @@ paths: description: Get one decrypted uninstall token by its ID. operationId: get-fleet-uninstall-tokens-uninstalltokenid parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - in: path name: uninstallTokenId required: true @@ -38498,14 +37490,6 @@ paths: get: operationId: get-security-role parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: If `true` and the response contains any privileges that are associated with deprecated features, they are omitted in favor of details about the appropriate replacement feature privileges. in: query name: replaceDeprecatedPrivileges @@ -38527,14 +37511,6 @@ paths: delete: operationId: delete-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -38557,14 +37533,6 @@ paths: get: operationId: get-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The role name. in: path name: name @@ -38593,14 +37561,6 @@ paths: description: Create a new Kibana role or update the attributes of an existing role. Kibana roles are stored in the Elasticsearch native realm. operationId: put-security-role-name parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -38816,14 +37776,6 @@ paths: post: operationId: post-security-roles parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39024,14 +37976,6 @@ paths: description: 'It also allows you to automatically copy related objects, so when you copy a dashboard, this can automatically copy over the associated visualizations, data views, and saved searches, as required. You can request to overwrite any objects that already exist in the target space if they share an identifier or you can use the resolve copy saved objects conflicts API to do this on a per-object basis.

[Required authorization] Route required privileges: ALL of [copySavedObjectsToSpaces].' operationId: post-spaces-copy-saved-objects parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39110,14 +38054,6 @@ paths: post: operationId: post-spaces-disable-legacy-url-aliases parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39165,14 +38101,6 @@ paths: description: Collect references and space contexts for saved objects. operationId: post-spaces-get-shareable-references parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39211,14 +38139,6 @@ paths: description: 'Overwrite saved objects that are returned as errors from the copy saved objects to space API.

[Required authorization] Route required privileges: ALL of [copySavedObjectsToSpaces].' operationId: post-spaces-resolve-copy-saved-objects-errors parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39309,14 +38229,6 @@ paths: description: Update one or more saved objects to add or remove them from some spaces. operationId: post-spaces-update-objects-spaces parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39377,14 +38289,6 @@ paths: get: operationId: get-spaces-space parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Specifies which authorization checks are applied to the API call. The default value is `any`. in: query name: purpose @@ -39431,14 +38335,6 @@ paths: post: operationId: post-spaces-space parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39505,14 +38401,6 @@ paths: description: When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone. operationId: delete-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39537,14 +38425,6 @@ paths: get: operationId: get-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: The space identifier. in: path name: id @@ -39565,14 +38445,6 @@ paths: put: operationId: put-spaces-space-id parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: A required header to protect against CSRF attacks in: header name: kbn-xsrf @@ -39644,14 +38516,6 @@ paths: get: operationId: get-status parameters: - - description: The version of the API to use - in: header - name: elastic-api-version - schema: - default: '2023-10-31' - enum: - - '2023-10-31' - type: string - description: Set to "true" to get the response in v7 format. in: query name: v7format diff --git a/packages/core/http/core-http-router-server-internal/index.ts b/packages/core/http/core-http-router-server-internal/index.ts index 6aa6ac117f533..0e048c59144df 100644 --- a/packages/core/http/core-http-router-server-internal/index.ts +++ b/packages/core/http/core-http-router-server-internal/index.ts @@ -11,7 +11,7 @@ export { filterHeaders } from './src/headers'; export { versionHandlerResolvers, CoreVersionedRouter, - ALLOWED_PUBLIC_VERSION, + BASE_PUBLIC_VERSION, unwrapVersionedResponseBodyValidation, type HandlerResolutionStrategy, } from './src/versioned_router'; diff --git a/packages/core/http/core-http-router-server-internal/src/router.ts b/packages/core/http/core-http-router-server-internal/src/router.ts index c3e44f8bc9d7b..d1640a4db6db1 100644 --- a/packages/core/http/core-http-router-server-internal/src/router.ts +++ b/packages/core/http/core-http-router-server-internal/src/router.ts @@ -35,7 +35,7 @@ import { validBodyOutput, getRequestValidation } from '@kbn/core-http-server'; import type { RouteSecurityGetter } from '@kbn/core-http-server'; import type { DeepPartial } from '@kbn/utility-types'; import { RouteValidator } from './validator'; -import { ALLOWED_PUBLIC_VERSION, CoreVersionedRouter } from './versioned_router'; +import { BASE_PUBLIC_VERSION, CoreVersionedRouter } from './versioned_router'; import { CoreKibanaRequest } from './request'; import { kibanaResponseFactory } from './response'; import { HapiResponseAdapter } from './response_adapter'; @@ -339,7 +339,7 @@ export class Router { describe('@kbn/config-schema', () => { it('generates the expected OpenAPI document for the shared schema', () => { const [routers, versionedRouters] = createTestRouters({ - routers: { testRouter: { routes: [{ method: 'get' }, { method: 'post' }] } }, + routers: { + testRouter: { + routes: [{ method: 'get' }, { method: 'post' }], + }, + }, versionedRouters: { testVersionedRouter: { routes: [{}] } }, bodySchema: createSharedConfigSchema(), }); @@ -118,7 +122,7 @@ describe('generateOpenApiDocument', () => { }, }, }, - options: { tags: ['foo'] }, + options: { tags: ['foo'], access: 'public' }, handler: jest.fn(), }, ], @@ -164,7 +168,7 @@ describe('generateOpenApiDocument', () => { }, }, }, - options: { tags: ['foo'] }, + options: { tags: ['foo'], access: 'public' }, handler: jest.fn(), }, ], @@ -229,7 +233,7 @@ describe('generateOpenApiDocument', () => { }, }, }, - options: { tags: ['foo'] }, + options: { tags: ['foo'], access: 'public' }, handler: jest.fn(), }, ], @@ -251,7 +255,7 @@ describe('generateOpenApiDocument', () => { request: { body: () => ({ value: {} }) }, response: { 200: { body: (() => {}) as any } }, }, - version: '123', + version: '2023-10-31', }, }, ], @@ -276,11 +280,19 @@ describe('generateOpenApiDocument', () => { routers: { testRouter1: { routes: [ - { path: '/1-1/{id}/{path*}', options: { tags: ['oas-tag:1', 'oas-tag:2', 'foo'] } }, - { path: '/1-2/{id}/{path*}', options: { tags: ['oas-tag:1', 'foo'] } }, + { + path: '/1-1/{id}/{path*}', + options: { tags: ['oas-tag:1', 'oas-tag:2', 'foo'], access: 'public' }, + }, + { + path: '/1-2/{id}/{path*}', + options: { tags: ['oas-tag:1', 'foo'], access: 'public' }, + }, ], }, - testRouter2: { routes: [{ path: '/2-1/{id}/{path*}', options: { tags: undefined } }] }, + testRouter2: { + routes: [{ path: '/2-1/{id}/{path*}', options: { tags: undefined, access: 'public' } }], + }, }, versionedRouters: { testVersionedRouter1: { @@ -332,15 +344,15 @@ describe('generateOpenApiDocument', () => { routes: [ { path: '/1-1/{id}/{path*}', - options: { availability: { stability: 'experimental' } }, + options: { availability: { stability: 'experimental' }, access: 'public' }, }, { path: '/1-2/{id}/{path*}', - options: { availability: { stability: 'beta' } }, + options: { availability: { stability: 'beta' }, access: 'public' }, }, { path: '/1-3/{id}/{path*}', - options: { availability: { stability: 'stable' } }, + options: { availability: { stability: 'stable' }, access: 'public' }, }, ], }, diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts b/packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts index a39afb6357bfc..96d427aacb197 100644 --- a/packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts +++ b/packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts @@ -36,6 +36,7 @@ export const getRouterDefaults = (bodySchema?: RuntimeSchema): RouterRoute => ({ tags: ['foo', 'oas-tag:bar'], summary: 'route summary', description: 'route description', + access: 'public', }, validationSchemas: { request: { @@ -100,7 +101,7 @@ export const getVersionedRouterDefaults = (bodySchema?: RuntimeSchema): Versione }, response: { [200]: { - description: 'OK response oas-test-version-1', + description: 'OK response 2023-10-31', body: () => schema.object( { fooResponseWithDescription: schema.string() }, @@ -109,7 +110,7 @@ export const getVersionedRouterDefaults = (bodySchema?: RuntimeSchema): Versione }, }, }, - version: 'oas-test-version-1', + version: '2023-10-31', }, }, { @@ -119,14 +120,14 @@ export const getVersionedRouterDefaults = (bodySchema?: RuntimeSchema): Versione request: { body: schema.object({ foo: schema.string() }) }, response: { [200]: { - description: 'OK response oas-test-version-2', + description: 'OK response 9999-99-99', body: () => schema.stream({ meta: { description: 'stream response' } }), bodyContentType: 'application/octet-stream', }, unsafe: { body: true }, }, }, - version: 'oas-test-version-2', + version: '9999-99-99', }, }, ], diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.ts b/packages/kbn-router-to-openapispec/src/generate_oas.ts index 9c7423147721b..d16cdd14953a9 100644 --- a/packages/kbn-router-to-openapispec/src/generate_oas.ts +++ b/packages/kbn-router-to-openapispec/src/generate_oas.ts @@ -8,6 +8,7 @@ */ import type { CoreVersionedRouter, Router } from '@kbn/core-http-router-server-internal'; +import { BASE_PUBLIC_VERSION as SERVERLESS_VERSION_2023_10_31 } from '@kbn/core-http-router-server-internal'; import type { OpenAPIV3 } from 'openapi-types'; import { OasConverter } from './oas_converter'; import { processRouter } from './process_router'; @@ -19,7 +20,12 @@ export const openApiVersion = '3.0.0'; export interface GenerateOpenApiDocumentOptionsFilters { pathStartsWith?: string[]; excludePathsMatching?: string[]; - access?: 'public' | 'internal'; + /** @default 'public' */ + access: 'public' | 'internal'; + /** + * We generate spec for one version at a time + * @default '2023-10-31' if access is public, otherwise undefined + */ version?: string; } @@ -37,7 +43,10 @@ export const generateOpenApiDocument = ( appRouters: { routers: Router[]; versionedRouters: CoreVersionedRouter[] }, opts: GenerateOpenApiDocumentOptions ): OpenAPIV3.Document => { - const { filters } = opts; + let { filters = { access: 'public' } } = opts; + if (filters.access === 'public' && !filters.version) { + filters = { ...filters, version: SERVERLESS_VERSION_2023_10_31 }; + } const converter = new OasConverter(); const paths: OpenAPIV3.PathsObject = {}; const getOpId = createOpIdGenerator(); diff --git a/packages/kbn-router-to-openapispec/src/process_router.test.ts b/packages/kbn-router-to-openapispec/src/process_router.test.ts index 2ce135a378789..a7bcfc7506485 100644 --- a/packages/kbn-router-to-openapispec/src/process_router.test.ts +++ b/packages/kbn-router-to-openapispec/src/process_router.test.ts @@ -51,7 +51,7 @@ describe('extractResponses', () => { 200: { description: 'OK response', content: { - 'application/test+json; Elastic-Api-Version=2023-10-31': { + 'application/test+json': { schema: { type: 'object', additionalProperties: false, @@ -66,7 +66,7 @@ describe('extractResponses', () => { 404: { description: 'Not Found response', content: { - 'application/test2+json; Elastic-Api-Version=2023-10-31': { + 'application/test2+json': { schema: { type: 'object', additionalProperties: false, @@ -88,28 +88,28 @@ describe('processRouter', () => { { method: 'get', path: '/foo', - options: { access: 'internal', deprecated: true, discontinued: 'discontinued router' }, + options: { access: 'public', deprecated: true, discontinued: 'discontinued router' }, handler: jest.fn(), validationSchemas: { request: { body: schema.object({}) } }, }, { method: 'get', path: '/bar', - options: {}, + options: { access: 'public' }, handler: jest.fn(), validationSchemas: { request: { body: schema.object({}) } }, }, { method: 'get', path: '/baz', - options: {}, + options: { access: 'public' }, handler: jest.fn(), validationSchemas: { request: { body: schema.object({}) } }, }, { path: '/qux', method: 'post', - options: {}, + options: { access: 'public' }, handler: jest.fn(), validationSchemas: { request: { body: schema.object({}) } }, security: { @@ -129,6 +129,7 @@ describe('processRouter', () => { method: 'post', options: { description: 'This a test route description.', + access: 'public', }, handler: jest.fn(), validationSchemas: { request: { body: schema.object({}) } }, @@ -150,12 +151,14 @@ describe('processRouter', () => { it('only provides routes for version 2023-10-31', () => { const result1 = processRouter(testRouter, new OasConverter(), createOpIdGenerator(), { version: '2023-10-31', + access: 'public', }); expect(Object.keys(result1.paths!)).toHaveLength(5); const result2 = processRouter(testRouter, new OasConverter(), createOpIdGenerator(), { version: '2024-10-31', + access: 'public', }); expect(Object.keys(result2.paths!)).toHaveLength(0); }); @@ -163,6 +166,7 @@ describe('processRouter', () => { it('updates description with privileges required', () => { const result = processRouter(testRouter, new OasConverter(), createOpIdGenerator(), { version: '2023-10-31', + access: 'public', }); expect(result.paths['/qux']?.post).toBeDefined(); diff --git a/packages/kbn-router-to-openapispec/src/process_router.ts b/packages/kbn-router-to-openapispec/src/process_router.ts index b808f9bed84d5..f47888808772f 100644 --- a/packages/kbn-router-to-openapispec/src/process_router.ts +++ b/packages/kbn-router-to-openapispec/src/process_router.ts @@ -9,7 +9,7 @@ import type { Router } from '@kbn/core-http-router-server-internal'; import { getResponseValidation } from '@kbn/core-http-server'; -import { ALLOWED_PUBLIC_VERSION as SERVERLESS_VERSION_2023_10_31 } from '@kbn/core-http-router-server-internal'; +import { BASE_PUBLIC_VERSION as SERVERLESS_VERSION_2023_10_31 } from '@kbn/core-http-router-server-internal'; import type { OpenAPIV3 } from 'openapi-types'; import type { OasConverter } from './oas_converter'; import { @@ -20,7 +20,6 @@ import { extractValidationSchemaFromRoute, getPathParameters, getVersionedContentTypeString, - getVersionedHeaderParam, mergeResponseContent, prepareRoutes, setXState, @@ -34,7 +33,7 @@ export const processRouter = ( appRouter: Router, converter: OasConverter, getOpId: GetOpId, - filters?: GenerateOpenApiDocumentOptionsFilters + filters: GenerateOpenApiDocumentOptionsFilters ) => { const paths: OpenAPIV3.PathsObject = {}; if (filters?.version && filters.version !== SERVERLESS_VERSION_2023_10_31) return { paths }; @@ -47,7 +46,6 @@ export const processRouter = ( const contentType = extractContentType(route.options?.body); const parameters: OpenAPIV3.ParameterObject[] = [ - getVersionedHeaderParam(SERVERLESS_VERSION_2023_10_31, [SERVERLESS_VERSION_2023_10_31]), ...getXsrfHeaderForMethod(route.method, route.options), ]; if (validationSchemas) { @@ -84,7 +82,11 @@ export const processRouter = ( requestBody: !!validationSchemas?.body ? { content: { - [getVersionedContentTypeString(SERVERLESS_VERSION_2023_10_31, contentType)]: { + [getVersionedContentTypeString( + SERVERLESS_VERSION_2023_10_31, + 'public', + contentType + )]: { schema: converter.convert(validationSchemas.body), }, }, @@ -124,6 +126,7 @@ export const extractResponses = (route: InternalRouterRoute, converter: OasConve ? { [getVersionedContentTypeString( SERVERLESS_VERSION_2023_10_31, + 'public', schema.bodyContentType ? [schema.bodyContentType] : contentType )]: { schema: converter.convert(schema.body()), diff --git a/packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts b/packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts index b7a4827e4f365..af426b5f0c4f9 100644 --- a/packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts +++ b/packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts @@ -12,9 +12,9 @@ import type { CoreVersionedRouter } from '@kbn/core-http-router-server-internal' import { get } from 'lodash'; import { OasConverter } from './oas_converter'; import { - processVersionedRouter, - extractVersionedResponses, extractVersionedRequestBodies, + extractVersionedResponses, + processVersionedRouter, } from './process_versioned_router'; import { VersionedRouterRoute } from '@kbn/core-http-server'; import { createOpIdGenerator } from './util'; @@ -27,9 +27,9 @@ beforeEach(() => { describe('extractVersionedRequestBodies', () => { test('handles full request config as expected', () => { expect( - extractVersionedRequestBodies(createTestRoute(), oasConverter, ['application/json']) + extractVersionedRequestBodies(createInternalTestRoute(), oasConverter, ['application/json']) ).toEqual({ - 'application/json; Elastic-Api-Version=2023-10-31': { + 'application/json; Elastic-Api-Version=1': { schema: { additionalProperties: false, properties: { @@ -41,7 +41,7 @@ describe('extractVersionedRequestBodies', () => { type: 'object', }, }, - 'application/json; Elastic-Api-Version=2024-12-31': { + 'application/json; Elastic-Api-Version=2': { schema: { additionalProperties: false, properties: { @@ -60,12 +60,12 @@ describe('extractVersionedRequestBodies', () => { describe('extractVersionedResponses', () => { test('handles full response config as expected', () => { expect( - extractVersionedResponses(createTestRoute(), oasConverter, ['application/test+json']) + extractVersionedResponses(createInternalTestRoute(), oasConverter, ['application/test+json']) ).toEqual({ 200: { - description: 'OK response 2023-10-31\nOK response 2024-12-31', // merge multiple version descriptions + description: 'OK response 1\nOK response 2', // merge multiple version descriptions content: { - 'application/test+json; Elastic-Api-Version=2023-10-31': { + 'application/test+json; Elastic-Api-Version=1': { schema: { type: 'object', additionalProperties: false, @@ -75,7 +75,7 @@ describe('extractVersionedResponses', () => { required: ['bar'], }, }, - 'application/test+json; Elastic-Api-Version=2024-12-31': { + 'application/test+json; Elastic-Api-Version=2': { schema: { type: 'object', additionalProperties: false, @@ -88,9 +88,9 @@ describe('extractVersionedResponses', () => { }, }, 404: { - description: 'Not Found response 2023-10-31', + description: 'Not Found response 1', content: { - 'application/test2+json; Elastic-Api-Version=2023-10-31': { + 'application/test2+json; Elastic-Api-Version=1': { schema: { type: 'object', additionalProperties: false, @@ -104,7 +104,7 @@ describe('extractVersionedResponses', () => { }, 500: { content: { - 'application/test2+json; Elastic-Api-Version=2024-12-31': { + 'application/test2+json; Elastic-Api-Version=2': { schema: { type: 'object', additionalProperties: false, @@ -126,22 +126,21 @@ describe('processVersionedRouter', () => { { getRoutes: () => [createTestRoute()] } as unknown as CoreVersionedRouter, new OasConverter(), createOpIdGenerator(), - {} + { access: 'public', version: '2023-10-31' } ); expect(Object.keys(get(baseCase, 'paths["/foo"].get.responses.200.content')!)).toEqual([ - 'application/test+json; Elastic-Api-Version=2023-10-31', - 'application/test+json; Elastic-Api-Version=2024-12-31', + 'application/test+json', ]); const filteredCase = processVersionedRouter( { getRoutes: () => [createTestRoute()] } as unknown as CoreVersionedRouter, new OasConverter(), createOpIdGenerator(), - { version: '2023-10-31' } + { version: '2024-12-31', access: 'public' } ); expect(Object.keys(get(filteredCase, 'paths["/foo"].get.responses.200.content')!)).toEqual([ - 'application/test+json; Elastic-Api-Version=2023-10-31', + 'application/test+json', ]); }); @@ -150,7 +149,7 @@ describe('processVersionedRouter', () => { { getRoutes: () => [createTestRoute()] } as unknown as CoreVersionedRouter, new OasConverter(), createOpIdGenerator(), - {} + { version: '2023-10-31', access: 'public' } ); expect(results.paths['/foo']).toBeDefined(); @@ -228,3 +227,70 @@ const createTestRoute: () => VersionedRouterRoute = () => ({ }, ], }); + +const createInternalTestRoute: () => VersionedRouterRoute = () => ({ + path: '/foo', + method: 'get', + isVersioned: true, + options: { + access: 'internal', + deprecated: true, + discontinued: 'discontinued versioned router', + options: { body: { access: ['application/test+json'] } as any }, + security: { + authz: { + requiredPrivileges: ['manage_spaces'], + }, + }, + description: 'This is a test route description.', + }, + handlers: [ + { + fn: jest.fn(), + options: { + version: '1', + validate: () => ({ + request: { + body: schema.object({ foo: schema.string() }), + }, + response: { + 200: { + description: 'OK response 1', + bodyContentType: 'application/test+json', + body: () => schema.object({ bar: schema.number({ min: 1, max: 99 }) }), + }, + 404: { + description: 'Not Found response 1', + bodyContentType: 'application/test2+json', + body: () => schema.object({ ok: schema.literal(false) }), + }, + unsafe: { body: false }, + }, + }), + }, + }, + { + fn: jest.fn(), + options: { + version: '2', + validate: () => ({ + request: { + body: schema.object({ foo2: schema.string() }), + }, + response: { + 200: { + description: 'OK response 2', + bodyContentType: 'application/test+json', + body: () => schema.object({ bar2: schema.number({ min: 1, max: 99 }) }), + }, + 500: { + bodyContentType: 'application/test2+json', + body: () => schema.object({ ok: schema.literal(false) }), + }, + unsafe: { body: false }, + }, + }), + }, + }, + ], +}); diff --git a/packages/kbn-router-to-openapispec/src/process_versioned_router.ts b/packages/kbn-router-to-openapispec/src/process_versioned_router.ts index eab2dfef78a21..7c16e5673cebb 100644 --- a/packages/kbn-router-to-openapispec/src/process_versioned_router.ts +++ b/packages/kbn-router-to-openapispec/src/process_versioned_router.ts @@ -17,7 +17,6 @@ import type { OpenAPIV3 } from 'openapi-types'; import { extractAuthzDescription } from './extract_authz_description'; import type { GenerateOpenApiDocumentOptionsFilters } from './generate_oas'; import type { OasConverter } from './oas_converter'; -import { isReferenceObject } from './oas_converter/common'; import { prepareRoutes, getPathParameters, @@ -31,12 +30,13 @@ import { setXState, GetOpId, } from './util'; +import { isReferenceObject } from './oas_converter/common'; export const processVersionedRouter = ( appRouter: CoreVersionedRouter, converter: OasConverter, getOpId: GetOpId, - filters?: GenerateOpenApiDocumentOptionsFilters + filters: GenerateOpenApiDocumentOptionsFilters ) => { const routes = prepareRoutes(appRouter.getRoutes(), filters); const paths: OpenAPIV3.PathsObject = {}; @@ -44,8 +44,8 @@ export const processVersionedRouter = ( const pathParams = getPathParameters(route.path); let parameters: OpenAPIV3.ParameterObject[] = []; - let version: undefined | string; let handler: undefined | VersionedRouterRoute['handlers'][0]; + let version: undefined | string; let versions: string[] = versionHandlerResolvers.sort( route.handlers.map(({ options: { version: v } }) => v), route.options.access @@ -84,12 +84,16 @@ export const processVersionedRouter = ( queryObjects = converter.convertQuery(reqQuery); } parameters = [ - getVersionedHeaderParam(version, versions), ...getXsrfHeaderForMethod(route.method as RouteMethod, route.options.options), ...pathObjects, ...queryObjects, ]; } + parameters = [ + ...(route.options.access === 'internal' + ? [getVersionedHeaderParam(version, versions)] + : ([] as OpenAPIV3.ParameterObject[])), + ].concat(...parameters); let description = `${route.options.description ?? ''}`; if (route.options.security) { const authzDescription = extractAuthzDescription(route.options.security); @@ -101,9 +105,9 @@ export const processVersionedRouter = ( const hasBody = Boolean(extractValidationSchemaFromVersionedHandler(handler)?.request?.body); const contentType = extractContentType(route.options.options?.body); - const hasVersionFilter = Boolean(filters?.version); // If any handler is deprecated we show deprecated: true in the spec const hasDeprecations = route.handlers.some(({ options }) => !!options.options?.deprecated); + const hasVersionFilter = Boolean(filters?.version); const operation: OpenAPIV3.OperationObject = { summary: route.options.summary ?? '', tags: route.options.options?.tags ? extractTags(route.options.options.tags) : [], @@ -113,12 +117,12 @@ export const processVersionedRouter = ( requestBody: hasBody ? { content: hasVersionFilter - ? extractVersionedRequestBody(handler, converter, contentType) + ? extractVersionedRequestBody(handler, route.options.access, converter, contentType) : extractVersionedRequestBodies(route, converter, contentType), } : undefined, responses: hasVersionFilter - ? extractVersionedResponse(handler, converter, contentType) + ? extractVersionedResponse(handler, route.options.access, converter, contentType) : extractVersionedResponses(route, converter, contentType), parameters, operationId: getOpId({ path: route.path, method: route.method }), @@ -140,8 +144,22 @@ export const processVersionedRouter = ( return { paths }; }; +export const extractVersionedRequestBodies = ( + route: VersionedRouterRoute, + converter: OasConverter, + contentType: string[] +): OpenAPIV3.RequestBodyObject['content'] => { + return route.handlers.reduce((acc, handler) => { + return { + ...acc, + ...extractVersionedRequestBody(handler, route.options.access, converter, contentType), + }; + }, {}); +}; + export const extractVersionedRequestBody = ( handler: VersionedRouterRoute['handlers'][0], + access: 'public' | 'internal', converter: OasConverter, contentType: string[] ) => { @@ -149,27 +167,15 @@ export const extractVersionedRequestBody = ( if (!schemas?.request) return {}; const schema = converter.convert(schemas.request.body); return { - [getVersionedContentTypeString(handler.options.version, contentType)]: { + [getVersionedContentTypeString(handler.options.version, access, contentType)]: { schema, }, }; }; -export const extractVersionedRequestBodies = ( - route: VersionedRouterRoute, - converter: OasConverter, - contentType: string[] -): OpenAPIV3.RequestBodyObject['content'] => { - return route.handlers.reduce((acc, handler) => { - return { - ...acc, - ...extractVersionedRequestBody(handler, converter, contentType), - }; - }, {}); -}; - export const extractVersionedResponse = ( handler: VersionedRouterRoute['handlers'][0], + access: 'public' | 'internal', converter: OasConverter, contentType: string[] ) => { @@ -184,6 +190,7 @@ export const extractVersionedResponse = ( const schema = converter.convert(maybeSchema); const contentTypeString = getVersionedContentTypeString( handler.options.version, + access, responseSchema.bodyContentType ? [responseSchema.bodyContentType] : contentType ); newContent = { @@ -237,7 +244,12 @@ export const extractVersionedResponses = ( contentType: string[] ): OpenAPIV3.ResponsesObject => { return route.handlers.reduce((acc, handler) => { - const responses = extractVersionedResponse(handler, converter, contentType); + const responses = extractVersionedResponse( + handler, + route.options.access, + converter, + contentType + ); return mergeVersionedResponses(acc, responses); }, {}); }; diff --git a/packages/kbn-router-to-openapispec/src/util.test.ts b/packages/kbn-router-to-openapispec/src/util.test.ts index ee34976e47152..80314ae55f179 100644 --- a/packages/kbn-router-to-openapispec/src/util.test.ts +++ b/packages/kbn-router-to-openapispec/src/util.test.ts @@ -134,7 +134,7 @@ describe('prepareRoutes', () => { { input: [{ path: '/api/foo', options: { access: internal } }], output: [{ path: '/api/foo', options: { access: internal } }], - filters: {}, + filters: { access: internal }, }, { input: [ @@ -142,7 +142,7 @@ describe('prepareRoutes', () => { { path: '/api/bar', options: { access: internal } }, ], output: [{ path: '/api/bar', options: { access: internal } }], - filters: { pathStartsWith: ['/api/bar'] }, + filters: { pathStartsWith: ['/api/bar'], access: internal }, }, { input: [ diff --git a/packages/kbn-router-to-openapispec/src/util.ts b/packages/kbn-router-to-openapispec/src/util.ts index 61c69caf538f9..ac3a47125e5b0 100644 --- a/packages/kbn-router-to-openapispec/src/util.ts +++ b/packages/kbn-router-to-openapispec/src/util.ts @@ -78,9 +78,15 @@ export const extractContentType = (body: undefined | RouteConfigOptionsBody) => export const getVersionedContentTypeString = ( version: string, + access: 'public' | 'internal', acceptedContentTypes: string[] ): string => { - return `${acceptedContentTypes.join('; ')}; Elastic-Api-Version=${version}`; + if (access === 'internal') { + return `${acceptedContentTypes.join('; ')}; Elastic-Api-Version=${version}`; + } + // Exclude Elastic-Api-Version header for public routes for now, this means public routes + // can only generate spec for one version at a time. + return `${acceptedContentTypes.join('; ')}`; }; export const extractValidationSchemaFromRoute = ( @@ -108,7 +114,7 @@ export const prepareRoutes = < R extends { path: string; options: { access?: 'public' | 'internal'; excludeFromOAS?: boolean } } >( routes: R[], - filters: GenerateOpenApiDocumentOptionsFilters = {} + filters: GenerateOpenApiDocumentOptionsFilters ): R[] => { if (Object.getOwnPropertyNames(filters).length === 0) return routes; return routes.filter((route) => { @@ -122,7 +128,16 @@ export const prepareRoutes = < if (filters.pathStartsWith && !filters.pathStartsWith.some((p) => route.path.startsWith(p))) { return false; } - if (filters.access && route.options.access !== filters.access) return false; + if (filters.access === 'public' && route.options.access !== 'public') { + return false; + } + if ( + filters.access === 'internal' && + route.options.access != null && + route.options.access !== 'internal' + ) { + return false; + } return true; }); }; diff --git a/src/core/server/integration_tests/http/oas.test.ts b/src/core/server/integration_tests/http/oas.test.ts index 413b8b01754b5..9aeffe884a203 100644 --- a/src/core/server/integration_tests/http/oas.test.ts +++ b/src/core/server/integration_tests/http/oas.test.ts @@ -17,6 +17,7 @@ import type { } from '@kbn/core-http-context-server-internal'; import { InternalExecutionContextSetup } from '@kbn/core-execution-context-server-internal'; import { IRouter } from '@kbn/core-http-server'; +import { schema } from '@kbn/config-schema'; let prebootDeps: { context: jest.Mocked; @@ -81,14 +82,14 @@ it('handles requests when enabled', async () => { it.each([ { - queryParam: { pathStartsWith: '/api/include-test' }, + queryParam: { pathStartsWith: '/api/public-test' }, includes: { paths: { - '/api/include-test': { + '/api/public-test': { get: {}, post: {}, }, - '/api/include-test/{id}': {}, + '/api/public-test/{id}': {}, }, }, excludes: ['/my-other-plugin'], @@ -97,11 +98,11 @@ it.each([ queryParam: { pluginId: 'myPlugin' }, includes: { paths: { - '/api/include-test': { + '/api/public-test': { get: {}, post: {}, }, - '/api/include-test/{id}': {}, + '/api/public-test/{id}': {}, }, }, excludes: ['/my-other-plugin'], @@ -109,12 +110,13 @@ it.each([ { queryParam: { pluginId: 'nonExistant' }, includes: {}, - excludes: ['/my-include-test', '/my-other-plugin'], + excludes: ['/my-public-test', '/my-other-plugin'], }, { queryParam: { pluginId: 'myOtherPlugin', - pathStartsWith: ['/api/my-other-plugin', '/api/versioned'], + access: 'internal', + pathStartsWith: ['/api/my-other-plugin'], }, includes: { paths: { @@ -125,13 +127,13 @@ it.each([ }, }, }, - excludes: ['/my-include-test'], + excludes: ['/my-public-test'], }, { queryParam: { access: 'public', version: '2023-10-31' }, includes: { paths: { - '/api/include-test': { + '/api/public-test': { get: {}, }, '/api/versioned': { @@ -139,13 +141,13 @@ it.each([ }, }, }, - excludes: ['/api/my-include-test/{id}', '/api/exclude-test', '/api/my-other-plugin'], + excludes: ['/api/my-public-test/{id}', '/api/my-other-plugin'], }, { - queryParam: { excludePathsMatching: ['/api/exclude-test', '/api/my-other-plugin'] }, + queryParam: { excludePathsMatching: ['/api/internal-test', '/api/my-other-plugin'] }, includes: { paths: { - '/api/include-test': { + '/api/public-test': { get: {}, }, '/api/versioned': { @@ -153,7 +155,37 @@ it.each([ }, }, }, - excludes: ['/api/exclude-test', '/api/my-other-plugin'], + excludes: ['/api/internal-test', '/api/my-other-plugin'], + }, + { + queryParam: { access: 'internal', pathStartsWith: ['/api/versioned-internal'] }, + includes: { + paths: { + '/api/versioned-internal': { + get: { + parameters: [ + { + description: 'The version of the API to use', + in: 'header', + name: 'elastic-api-version', + schema: { + default: '2', + enum: ['1', '2'], + type: 'string', + }, + }, + ], + requestBody: { + content: { + 'application/json; Elastic-Api-Version=1': {}, // Multiple body types + 'application/json; Elastic-Api-Version=2': {}, + }, + }, + }, + }, + }, + }, + excludes: ['/api/internal-test', '/api/my-other-plugin'], }, ])( 'can filter paths based on query params $queryParam', @@ -163,17 +195,49 @@ it.each([ createRoutes: (getRouter) => { const router1 = getRouter(Symbol('myPlugin')); router1.get( - { path: '/api/include-test', validate: false, options: { access: 'public' } }, + { path: '/api/public-test', validate: false, options: { access: 'public' } }, + (_, __, res) => res.ok() + ); + router1.post( + { path: '/api/public-test', validate: false, options: { access: 'public' } }, + (_, __, res) => res.ok() + ); + router1.get( + { path: '/api/public-test/{id}', validate: false, options: { access: 'public' } }, + (_, __, res) => res.ok() + ); + router1.get( + { + path: '/api/internal-test', + validate: false, + options: { + /* empty */ + }, + }, (_, __, res) => res.ok() ); - router1.post({ path: '/api/include-test', validate: false }, (_, __, res) => res.ok()); - router1.get({ path: '/api/include-test/{id}', validate: false }, (_, __, res) => res.ok()); - router1.get({ path: '/api/exclude-test', validate: false }, (_, __, res) => res.ok()); router1.versioned .get({ path: '/api/versioned', access: 'public' }) .addVersion({ version: '2023-10-31', validate: false }, (_, __, res) => res.ok()); + router1.versioned + .get({ path: '/api/versioned-internal', access: 'internal' }) + .addVersion( + { + version: '1', + validate: { request: { body: schema.object({ foo: schema.string() }) } }, + }, + (_, __, res) => res.ok() + ) + .addVersion( + { + version: '2', + validate: { request: { body: schema.object({ bar: schema.string() }) } }, + }, + (_, __, res) => res.ok() + ); + const router2 = getRouter(Symbol('myOtherPlugin')); router2.get({ path: '/api/my-other-plugin', validate: false }, (_, __, res) => res.ok()); router2.post({ path: '/api/my-other-plugin', validate: false }, (_, __, res) => res.ok());