<commit_before>[role="xpack"]
[[promote-data-stream-api]]
=== Promote Data Stream API
++++
<titleabbrev>Promote data stream api</titleabbrev>
++++

The purpose of the promote data stream api is to turn
a data stream that is replicated by CCR into a regular
data stream.

Via CCR Auto Following, a data stream from a remote cluster
can  be replicated to the local cluster. These data streams
can't be rolled over in the local cluster. Only if the upstream
data stream rolls over then these replicated data streams roll
over as well. In the event that the remote cluster is no longer
available, the data stream in the local cluster can be promoted
to a regular data stream, which allows these data streams to
be rolled over in the local cluster.

[source,console]
----
POST /_data_stream/_promote/my-data-stream
----
// TEST[catch:missing]

[[promote-data-stream-api-request]]
==== {api-request-title}

`POST /_data_stream/_promote/<data-stream>`


[[promote-data-stream-api-path-params]]
==== {api-path-parms-title}
<commit_msg>[DOCS] Fix title casing (#67529)<commit_after>[role="xpack"]
[[promote-data-stream-api]]
=== Promote data stream API
++++
<titleabbrev>Promote data stream</titleabbrev>
++++

The purpose of the promote data stream api is to turn
a data stream that is replicated by CCR into a regular
data stream.

Via CCR Auto Following, a data stream from a remote cluster
can  be replicated to the local cluster. These data streams
can't be rolled over in the local cluster. Only if the upstream
data stream rolls over then these replicated data streams roll
over as well. In the event that the remote cluster is no longer
available, the data stream in the local cluster can be promoted
to a regular data stream, which allows these data streams to
be rolled over in the local cluster.

[source,console]
----
POST /_data_stream/_promote/my-data-stream
----
// TEST[catch:missing]

[[promote-data-stream-api-request]]
==== {api-request-title}

`POST /_data_stream/_promote/<data-stream>`


[[promote-data-stream-api-path-params]]
==== {api-path-parms-title}

{'fraction_non_alphanumeric': 0.10198163363943934, 'fraction_numerical': 0.002416626389560174, 'mean_word_length': 4.476190476190476, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6077547', 'n_tokens_mistral': 617, 'n_tokens_neox': 585, 'n_words': 261}