diff --git a/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml b/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml index 9c0dfa274f..fe1b9a5385 100644 --- a/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml +++ b/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml @@ -41,13 +41,45 @@ actions: application/json: examples: createTransformRequestExample1: - $ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample1.json" + $ref: "../../specification/transform/put_transform/PutTransformRequestExample1.json" createTransformRequestExample2: - $ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample2.json" + $ref: "../../specification/transform/put_transform/PutTransformRequestExample2.json" responses: 200: content: application/json: examples: createTransformResponseExample1: - $ref: "../../specification/transform/put_transform/examples/200_response/PutTransformResponseExample1.json" + $ref: "../../specification/transform/put_transform/PutTransformResponseExample1.json" + - target: "$.components['requestBodies']['transform.preview_transform']" + description: "Add examples for preview transform operation" + update: + content: + application/json: + examples: + previewTransformRequestExample1: + $ref: "../../specification/transform/preview_transform/PreviewTransformRequestExample1.json" + - target: "$.components['reponses']['transform.preview_transform#200']" + description: "Add examples for preview transform operation" + update: + content: + application/json: + examples: + previewTransformResponseExample1: + $ref: "../../specification/transform/preview_transform/PreviewTransformResponseExample1.json" + - target: "$.paths['/_transform/{transform_id}/_update']['post']" + description: "Add examples for update transform operation" + update: + requestBody: + content: + application/json: + examples: + updateTransformRequestExample1: + $ref: "../../specification/transform/update_transform/UpdateTransformRequestExample1.json" + responses: + 200: + content: + application/json: + examples: + updateTransformResponseExample1: + $ref: "../../specification/transform/update_transform/UpdateTransformResponseExample1.json" \ No newline at end of file