Skip to content

Add Data Stream API reference - #12912

Open
dwelsch-esi wants to merge 2 commits into
opensearch-project:mainfrom
dwelsch-esi:add-datastream-api
Open

Add Data Stream API reference#12912
dwelsch-esi wants to merge 2 commits into
opensearch-project:mainfrom
dwelsch-esi:add-datastream-api

Conversation

@dwelsch-esi

Copy link
Copy Markdown
Contributor

Add missing Data Stream API. Include as part of the Index API in its own directory, similar to the alias API.

Description

Adds missing API to the OpenSearch API reference documentation.

Version

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.

…own directory, similar to the alias API.

Signed-off-by: Dave Welsch <dwelsch@expertsupport.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged.

Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer.

When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference).

Signed-off-by: Dave Welsch <dwelsch@expertsupport.com>

| Parameter | Required | Data type | Description |
| :--- | :--- | :--- | :--- |
| `name` | **Required** | String | Name of the data stream, which must meet the following criteria: Lowercase only; Cannot include `\`, `/`, `*`, `?`, `"`, `<`, `>`, `\|`, `,`, `#`, `:`, or a space character; Cannot start with `-`, `_`, `+`, or `.ds-`; Cannot be `.` or `..`; Cannot be longer than 255 bytes. Multi-byte characters count towards this limit faster. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dwelsch-esi Please include articles in the description ("the name of the data stream"). Also, please punctuate and capitalize correctly and rewrite for clarity. Whenever possible, use existing established phrasing for parameter descriptions.

| Field | Data type | Description |
| :--- | :--- | :--- |
| `data_streams` | Array | A list of objects, one for each data stream. |
| `data_streams[n].name` | String | The name of the data stream. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use array notation in the response body fields table. Create a separate table for array elements and add an intro sentence for that, then use the parameter names directly in that new table (timestamp_field, etc.)

| :--- | :--- | :--- | :--- |
| `error_trace` | Boolean | Whether to include the stack trace of returned errors. | `false` |
| `filter_path` | List or String | Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field's name. You can also exclude fields with "-". | N/A |
| `filter_path` | List or String | Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a fields name. You can also exclude fields with `-`. | N/A |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use curly apostrophes. Use only plain apostrophe characters (Markdown ones). Replace all these.

| `filter_path` | List or String | Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with `-`. | N/A |
| `human` | Boolean | Whether to return human-readable values for statistics. | `false` |
| `pretty` | Boolean | Whether to pretty format the returned JSON response. | `false` |
| `source` | String | The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. | N/A |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter comes up as not supported for me. Could you provide an example request and example response that show that it works?

| :--- | :--- | :--- | :--- |
| `error_trace` | Boolean | Whether to include the stack trace of returned errors. | `false` |
| `filter_path` | List or String | Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with `-`. | N/A |
| `human` | Boolean | Whether to return human-readable values for statistics. | `false` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't include 'error_trace', 'filter_path', 'human', or 'pretty' in the query parameter tables. They are listed in the "common parameters" topic. error_trace is used for debugging and is not a meaningful parameter here, human doesn't change the output for this API (the response is just an ack) so it shouldn't be listed as it's no-op, and filter_path is not needed because the response is trivial.

@kolchfa-aws kolchfa-aws left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dwelsch-esi Please see my comments and apply to all files.

@kolchfa-aws kolchfa-aws added Doc review PR: Doc review in progress and removed Tech review PR: Tech review in progress labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc review PR: Doc review in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants