Created recurrent event has fixed lenght (30 min), unable to create event with start and end date.

Tichy, Jakub 30 Reputation points
2024-03-02T15:54:32.9966667+00:00

Hello, when I try to create a recurrent event, with a specified start and end date. I always created a only 30 minutes event. It is because this error message: ErrorOccurrenceTimeSpanTooBig. On stackoverflow i found, that I have to remove start and end object, to make it work. It helped, but now I have only 30 minutes meetings. Event, which I created was in new and empty calendar, so there should be no conflict. Sending you a image of event, I created.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,792 questions
0 comments No comments
{count} votes

Accepted answer
  1. AsithwMSFT 1,425 Reputation points Microsoft Vendor
    2024-03-02T17:31:38.9466667+00:00

    Hi Tichy, Jakub

    I created a recurring event with a duration of 30 minutes using me/events (POST)

    Could you please confirm if the request body has been added correctly?

    here I added sample request.

    {
      "subject": "Daily Standup Meeting",
      "body": {
        "contentType": "Text",
        "content": "Quick update on daily tasks"
      },
      "start": {
        "dateTime": "2024-03-05T09:00:00",
        "timeZone": "UTC"
      },
      "end": {
        "dateTime": "2024-03-05T09:30:00",
        "timeZone": "UTC"
      },
      "recurrence": {
        "pattern": {
          "type": "daily",
          "interval": 1
        },
        "range": {
          "type": "endDate",
          "startDate": "2024-03-05",
          "endDate": "2024-06-01"
        }
      }
    }
    
    
    

    for more details, check the documentation https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http#example-3-create-a-recurring-event

    evetsrecurance

    I hope this helps. If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Tichy, Jakub 30 Reputation points
    2024-03-03T00:07:40.49+00:00

    ..............

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.