Create calendar API

edit

Instantiates a calendar.

Request

edit

PUT _ml/calendars/<calendar_id>

Description

edit

For more information, see Calendars and scheduled events.

Path parameters

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

Request body

edit
description
(string) A description of the calendar.

Prerequisites

edit

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

Examples

edit

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": []
}