From 008485142aaf5e55e91ddea3ba83b8fbec89ddf8 Mon Sep 17 00:00:00 2001 From: Amy Jonsson Date: Mon, 14 Aug 2023 06:35:05 +0100 Subject: [PATCH] Adding PUT runtime field --- .../data_views/docs/openapi/bundled.json | 40 +++++++++++++++++++ .../data_views/docs/openapi/bundled.yaml | 27 +++++++++++++ ...iews@data_view@{viewid}@runtime_field.yaml | 28 +++++++++++++ 3 files changed, 95 insertions(+) diff --git a/src/plugins/data_views/docs/openapi/bundled.json b/src/plugins/data_views/docs/openapi/bundled.json index 4fad55a9910edc..09515ba8b1ad4c 100644 --- a/src/plugins/data_views/docs/openapi/bundled.json +++ b/src/plugins/data_views/docs/openapi/bundled.json @@ -332,6 +332,46 @@ } } } + } + }, + "put": { + "summary": "Create or update an existing runtime field.", + "operationId": "updateRuntimeField", + "description": "This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", + "tags": [ + "data views" + ], + "parameters": [ + { + "$ref": "#/components/parameters/kbn_xsrf" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data_view_id": { + "description": "The ID of the data view.", + "type": "string", + "required": true + }, + "space_id": { + "description": "An identifier for the space. If space_id is not provided in the URL, the default space is used.", + "type": "string", + "required": false + } + } + }, + "examples": { + "updateRuntimeFieldRequest": { + "$ref": "#/components/examples/create_runtime_field_request" + } + } + } + } }, "responses": { "200": { diff --git a/src/plugins/data_views/docs/openapi/bundled.yaml b/src/plugins/data_views/docs/openapi/bundled.yaml index 83d4fd001df49f..01f5b4eb3615c0 100644 --- a/src/plugins/data_views/docs/openapi/bundled.yaml +++ b/src/plugins/data_views/docs/openapi/bundled.yaml @@ -202,6 +202,33 @@ paths: examples: createRuntimeFieldRequest: $ref: '#/components/examples/create_runtime_field_request' + put: + summary: Create or update an existing runtime field. + operationId: updateRuntimeField + description: | + This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. + tags: + - data views + parameters: + - $ref: '#/components/parameters/kbn_xsrf' + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + data_view_id: + description: The ID of the data view. + type: string + required: true + space_id: + description: An identifier for the space. If space_id is not provided in the URL, the default space is used. + type: string + required: false + examples: + updateRuntimeFieldRequest: + $ref: '#/components/examples/create_runtime_field_request' responses: '200': description: Indicates a successful call. diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml b/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml index 8ebd7e0b4d06ae..058c9aad774be9 100644 --- a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml +++ b/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml @@ -25,6 +25,34 @@ post: examples: createRuntimeFieldRequest: $ref: '../components/examples/create_runtime_field_request.yaml' + +put: + summary: Create or update an existing runtime field. + operationId: updateRuntimeField + description: > + This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. + tags: + - data views + parameters: + - $ref: '../components/headers/kbn_xsrf.yaml' + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + data_view_id: + description: The ID of the data view. + type: string + required: true + space_id: + description: An identifier for the space. If space_id is not provided in the URL, the default space is used. + type: string + required: false + examples: + updateRuntimeFieldRequest: + $ref: '../components/examples/create_runtime_field_request.yaml' responses: '200': description: Indicates a successful call.