Create calendar APIedit

Instantiates a calendar.

Requestedit

PUT _ml/calendars/<calendar_id>

Descriptionedit

For more information, see Calendars and scheduled events.

Path parametersedit

calendar_id (required)
(string) Identifier for the calendar.

Request bodyedit

description
(string) A description of the calendar.

Prerequisitesedit

You must have manage_ml, or manage cluster privileges to use this API. For more information, see Security privileges.

Examplesedit

The following example creates the planned-outages calendar:

PUT _ml/calendars/planned-outages

When the calendar is created, you receive the following results:

{
  "calendar_id": "planned-outages",
  "job_ids": []
}