---
title: "Add Edit Elasticsearch"
method: POST
path: "/{projectId}/integrations/elasticsearch"
tags: ["integrations"]
---

# Add Edit Elasticsearch

`POST /{projectId}/integrations/elasticsearch`

## Path parameters

- `projectId` integer, required

## Request body

- IntegrationElasticsearchSchema
  - `host` string, required
  - `port` integer, required
  - `apiKeyId` string, nullable
  - `apiKey` string, required
  - `indexes` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/openreplay/apis/fastapi.md) · [All operations](https://skmtc.net/openreplay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openreplay/fastapi/versions/4686e8023dc8/schema)
