Add scheduled events to the calendar

POST /_ml/calendars/{calendar_id}/events

Path parameters

  • calendar_id string Required

    A string that uniquely identifies a calendar.

application/json

Body Required

  • events array[object] Required

    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.

    Hide events attributes Show events attributes object

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
POST /_ml/calendars/{calendar_id}/events
curl \
 -X POST http://api.example.com/_ml/calendars/{calendar_id}/events \
 -H "Content-Type: application/json" \
 -d '{"events":[{"calendar_id":"string","event_id":"string","description":"string","":"string"}]}'