OpenSearch/docs/java-rest/high-level/ml/delete-calendar.asciidoc

35 lines
1.1 KiB
Plaintext
Raw Normal View History

--
:api: delete-calendar
:request: DeleteCalendarRequest
:response: AcknowledgedResponse
--
[role="xpack"]
[id="{upid}-{api}"]
=== Delete calendar API
2018-09-19 05:20:21 -04:00
Delete a {ml} calendar.
The API accepts a +{request}+ and responds
with a +{response}+ object.
2018-09-19 05:20:21 -04:00
[id="{upid}-{api}-request"]
==== Delete calendar request
2018-09-19 05:20:21 -04:00
A `DeleteCalendar` object requires a non-null `calendarId`.
["source","java",subs="attributes,callouts,macros"]
---------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
2018-09-19 05:20:21 -04:00
---------------------------------------------------
<1> Constructing a new request referencing an existing calendar
2018-09-19 05:20:21 -04:00
[id="{upid}-{api}-response"]
==== Delete calendar response
2018-09-19 05:20:21 -04:00
The returned +{response}+ object indicates the acknowledgement of the request:
2018-09-19 05:20:21 -04:00
["source","java",subs="attributes,callouts,macros"]
---------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
2018-09-19 05:20:21 -04:00
---------------------------------------------------
<1> `isAcknowledged` was the deletion request acknowledged or not
include::../execution.asciidoc[]