Create a new calendar event.
When the Microsoft Exchange integration mode is set to server-to-server, the workspace syncs Outlook events on the server. In that mode, requests that include externalId fail with error-calendar-managed-by-server-sync. Requests without externalId still create a Rocket.Chat event.
Changelog
| Version | Description |
|---|---|
| 9.1.0 | Added error-calendar-managed-by-server-sync. |
| 7.6.0 | Added busy parameter. |
| 6.3.0 | Added |
The authToken of the authenticated user.
The userId of the authenticated user.
{
"startTime": "2025-11-05T07:17:00.000Z",
"endTime": "2025-11-05T07:18:00.000Z",
"subject": "Subject8",
"description": "Description8",
"reminderMinutesBeforeStart": 10
}Enter the time at which the event starts.
Enter the time at which the event ends.
Enter a subject for the event.
Enter a description for the event.
Enter the number of minutes before the event that the reminder should be sent.
Enter whether or not you want to set your status as busy.
If you want to use an external event from another calendar, enter the event ID (eid) of the external calendar event.
OK
{
"id": "690b08674e7e8bcf6985b2d5",
"success": true
}Bad Request
{
"success": false,
"error": "error-calendar-managed-by-server-sync"
}Unauthorized
{
"success": false,
"error": "You must be logged in to do this."
}