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

# Add Edit Elasticsearch

`POST /{projectId}/integrations/elasticsearch`

## Request

- Base URL: `https://api.openreplay.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openreplay.com/{projectId}/integrations/elasticsearch`
- Auth: HTTP bearer

## 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.dev/openreplay/apis/openreplay-api.md) - [All operations](https://skmtc.dev/openreplay/apis/openreplay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openreplay/apis/openreplay-api/revisions/e5aaadb82e0a?raw)
