Créer un événement avec l'API Outlook Calendar

Crée un événement dans un calendrier et le renvoie avec id et webLink. Avec attendees, Outlook envoie aussitôt les invitations par e-mail, et cela ne peut pas être désactivé.

Identifiant
outlook_calendar_create_event

L'appel

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": {}
  }
}

Votre système envoie l'id de la connexion de votre client et les arguments de la tool. Les headers sont les mêmes que pour toute l'API Connect : le token de votre produit et celui de votre client.

Paramètres

Les descriptions des paramètres suivent la documentation officielle de l'app, en anglais.

ParamètreTypeObligatoireDescription
calendar_idstringOuiCalendar id from List calendars. The one with isDefaultCalendar true is the main calendar.
subjectstringNonTitle of the event.
bodyobjectNonDescription of the event. contentType is text or html.
startobjectOuiWhen the event starts. An all-day event starts at midnight.
endobjectOuiWhen the event ends. An all-day event ends at midnight of the next day, in the same time zone as start.
isAllDaybooleanNontrue for an all-day event, with start and end at midnight.
locationobjectNonWhere the event happens.
attendeesarrayNonPeople, rooms or equipment invited. Outlook emails them the invitation.
isOnlineMeetingbooleanNontrue adds an online meeting, together with onlineMeetingProvider.
onlineMeetingProviderstringNonteamsForBusiness adds a Microsoft Teams link. It needs a work or school account.Valeurs : teamsForBusiness
showAsstringNonHow the time shows in the calendar. oof is out of office.Valeurs : free, tentative, busy, oof, workingElsewhere
importancestringNonImportance of the event.Valeurs : low, normal, high
sensitivitystringNonPrivacy of the event.Valeurs : normal, personal, private, confidential
isReminderOnbooleanNontrue sets a reminder.
reminderMinutesBeforeStartintegerNonMinutes before the start that the reminder shows.
categoriesarrayNonCategory names of the user. The list replaces the current one.
recurrenceobjectNonRepetition. 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.
allowNewTimeProposalsbooleanNonfalse stops invitees from proposing another time. The default is true.
responseRequestedbooleanNonfalse asks invitees for no response. The default is true.

Connexions possibles

Votre client connecte son compte Outlook Calendar une seule fois, avec l'un des modes ci-dessous. La même connexion sert à toutes les tools du toolkit.

OAuth avec l'app de votre produit

Vous enregistrez une fois l'app OAuth de votre produit, avec POST /api/merchants/credentials/outlook_calendar, et votre client autorise le compte sur un écran de consentement. Connect renouvelle le token avant son expiration.

La réponse

En cas de succès, Connect conserve le statut et le corps de la réponse de l'app. Les erreurs HTTP renvoyées par l'app utilisent l'objet {error, api_error} ; l'authentification ou la validation peuvent échouer avant l'exécution. Le header X-Toolkit-Execution-Id identifie l'exécution enregistrée, consultable avec GET /api/tools/executions/{uuid}.

Prête pour les agents IA

L'input de cette tool est un JSON Schema, disponible via GET /api/tools/outlook_calendar_create_event. Il devient la définition de tool de votre agent sans conversion.

Autres tools Outlook Calendar

Voir les 10 tools

Toolkits de la même catégorie

Voir les 100 toolkits

Voyez Connect appliqué à votre produit.

Essayez-le pendant 15 jours sans carte, ou présentez votre cas à notre équipe.