Add scheduled events to the calendar
- POST /_ml/calendars/{calendar_id}/events
- Cluster privileges:
manage_ml
Path Parameters
-
calendar_idstring Idrequired -
A string that uniquely identifies a calendar.
Request
-
eventsCalendarEventrequired -
A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.
-
calendar_idstring Id -
A string that uniquely identifies a calendar.
-
event_idstring Id -
descriptionstringrequired -
A description of the scheduled event.
-
end_timeDateTimerequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeDateTimerequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.
Response
-
eventsCalendarEventrequired -
calendar_idstring Id -
A string that uniquely identifies a calendar.
-
event_idstring Id -
descriptionstringrequired -
A description of the scheduled event.
-
end_timeDateTimerequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeDateTimerequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.