Add scheduled events to the calendar
- POST /_ml/calendars/{calendar_id}/events
Required authorization
- Cluster privileges manage_ml
Request body
-
eventsobjectrequired -
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.
-
end_timeunionrequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeunionrequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
skip_resultboolean · default: true -
When true the model will not create results for this calendar period.
Response
application/json
-
eventsobjectrequired -
end_timeunionrequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeunionrequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
skip_resultboolean · default: true -
When true the model will not create results for this calendar period.