elasticsearch/docs/reference/behavioral-analytics/apis/put-analytics-collection.asciidoc
Kathleen DeRusso ae6474db63
Deprecate Behavioral Analytics CRUD apis (#122960)
* Deprecate Behavioral Analytics CRUD APIs

* Add allowed warning for REST Compatibility tests

* Update docs/changelog/122960.yaml

* Update changelog

* Update docs to add deprecation flags and fix failing tests

* Update changelog

* Update changelog again

* Update docs formatting

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

* Skip asciidoc test

---------

Co-authored-by: Efe Gürkan YALAMAN <efeyalaman@gmail.com>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2025-02-25 16:02:50 +01:00

51 lines
1.1 KiB
Text

[role="xpack"]
[[put-analytics-collection]]
=== Put Analytics Collection
deprecated:[9.0.0]
beta::[]
++++
<titleabbrev>Put Analytics Collection</titleabbrev>
++++
.New API reference
[sidebar]
--
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
--
Creates a <<behavioral-analytics-overview,Behavioral Analytics>> Collection.
[[put-analytics-collection-request]]
==== {api-request-title}
`PUT _application/analytics/<name>`
[[put-analytics-collection-path-params]]
==== {api-path-parms-title}
`<name>`::
(Required, string)
[[put-analytics-collection-prereqs]]
==== {api-prereq-title}
Requires the `manage_behavioral_analytics` cluster privilege.
[[put-analytics-collection-response-codes]]
==== {api-response-codes-title}
`400`::
Analytics Collection `<name>` exists.
[[put-analytics-collection-example]]
==== {api-examples-title}
The following example creates a new Analytics Collection called `my_analytics_collection`:
[source,console]
----
PUT _application/analytics/my_analytics_collection
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]