Crear evento en Outlook Calendar, con una API

Crea un evento en un calendario y lo devuelve con id y webLink. Con attendees, Outlook envía las invitaciones por email de inmediato, y esto no se puede desactivar.

Identificador
outlook_calendar_create_event

La llamada

POST https://connect.reportei.com/api/tools/outlook_calendar_create_event/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "calendar_id": "<calendar_id>",
    "start": {},
    "end": {}
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
calendar_idstringSíCalendar id from List calendars. The one with isDefaultCalendar true is the main calendar.
subjectstringNoTitle of the event.
bodyobjectNoDescription of the event. contentType is text or html.
startobjectSíWhen the event starts. An all-day event starts at midnight.
endobjectSíWhen the event ends. An all-day event ends at midnight of the next day, in the same time zone as start.
isAllDaybooleanNotrue for an all-day event, with start and end at midnight.
locationobjectNoWhere the event happens.
attendeesarrayNoPeople, rooms or equipment invited. Outlook emails them the invitation.
isOnlineMeetingbooleanNotrue adds an online meeting, together with onlineMeetingProvider.
onlineMeetingProviderstringNoteamsForBusiness adds a Microsoft Teams link. It needs a work or school account.Valores: teamsForBusiness
showAsstringNoHow the time shows in the calendar. oof is out of office.Valores: free, tentative, busy, oof, workingElsewhere
importancestringNoImportance of the event.Valores: low, normal, high
sensitivitystringNoPrivacy of the event.Valores: normal, personal, private, confidential
isReminderOnbooleanNotrue sets a reminder.
reminderMinutesBeforeStartintegerNoMinutes before the start that the reminder shows.
categoriesarrayNoCategory names of the user. The list replaces the current one.
recurrenceobjectNoRepetition. Besides type and interval, pattern needs: weekly, daysOfWeek and firstDayOfWeek; absoluteMonthly, dayOfMonth; relativeMonthly, daysOfWeek; absoluteYearly, dayOfMonth and month; relativeYearly, daysOfWeek and month. range.startDate is the date of start; range.type endDate needs endDate, and numbered needs numberOfOccurrences.
allowNewTimeProposalsbooleanNofalse stops invitees from proposing another time. The default is true.
responseRequestedbooleanNofalse asks invitees for no response. The default is true.

Conexiones posibles

Tu cliente conecta su cuenta de Outlook Calendar una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

OAuth con la app de tu producto

Registras la app OAuth de tu producto una sola vez, con POST /api/merchants/credentials/outlook_calendar, y tu cliente autoriza la cuenta en una pantalla de consentimiento. Connect renueva el token cuando está por vencer.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/outlook_calendar_create_event. Se convierte en la definición de tool de tu agente sin conversión.

Otras tools de Outlook Calendar

Ver las 10 tools

Toolkits de la misma categoría

Ver los 100 toolkits

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.