Need help with auto recording enable in events API

Tushar Bhadak 0 Reputation points
2025-05-06T07:56:25.35+00:00

I'm using Microsoft Graph Events API (https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http).

Everything is working perfectly but I'm unable to auto record the meet. Can anyone please guide me.

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

1 answer

Sort by: Most helpful
  1. Rukmini 1,871 Reputation points Microsoft External Staff Moderator
    2025-05-09T08:58:36.5266667+00:00

    Hello @Tushar Bhadak,

    I understand that you want to enable auto recording enable in Events API.

    When you create meeting using /me/events this uses Outlook Calendar API, not the Teams Online Meeting API directly. Hence you cannot set auto record for Events.

    • Microsoft Graph Events API (/users/{id}/events) is designed to create Outlook calendar events, not Teams meetings.

    Hence if you want to make use of recordAutomatically, then,

    • You need to create event (me/events) by passing "isOnlineMeeting": true and

    "onlineMeetingProvider": "teamsForBusiness" in the request body.

    • Otherwise, directly create Online meeting by using /me/onlineMeetings instead of me/events

    Workaround 1: Create an event by passing "isOnlineMeeting": true and

    "onlineMeetingProvider": "teamsForBusiness" in the request body like below:

    
    POST https://graph.microsoft.com/v1.0/me/events
    
    {
    
    "subject": "Plan summer company picnic",
    
    "body": {
    
    "contentType": "HTML",
    
    "content": "Let's kick-start this event planning!"
    
    },
    
    "start": {
    
    "dateTime": "2025-08-30T11:00:00",
    
    "timeZone": "Pacific Standard Time"
    
    },
    
    "end": {
    
    "dateTime": "2025-08-30T12:00:00",
    
    "timeZone": "Pacific Standard Time"
    
    },
    
    "attendees": [
    
    {
    
    "emailAddress": {
    
    "address": "******@xxx.onmicrosoft.com",
    
    "name": "Dana Swope"
    
    },
    
    "type": "Required"
    
    },
    
    {
    
    "emailAddress": {
    
    "address": "******@xxx.onmicrosoft.com",
    
    "name": "Alex Wilber"
    
    },
    
    "type": "Required"
    
    }
    
    ],
    
    "location": {
    
    "displayName": "Conf Room 3; Fourth Coffee; Home Office",
    
    "locationType": "Default"
    
    },
    
    "locations": [
    
    {
    
    "displayName": "Conf Room 3"
    
    },
    
    {
    
    "displayName": "Fourth Coffee",
    
    "address": {
    
    "street": "4567 Main St",
    
    "city": "Redmond",
    
    "state": "WA",
    
    "countryOrRegion": "US",
    
    "postalCode": "32008"
    
    },
    
    "coordinates": {
    
    "latitude": 47.672,
    
    "longitude": -102.103
    
    }
    
    },
    
    {
    
    "displayName": "Home Office"
    
    }
    
    ],
    
    "allowNewTimeProposals": true,
    
    "isOnlineMeeting": true,
    
    "onlineMeetingProvider": "teamsForBusiness"
    
    }
    
    

    User's image

    Now, To get the meeting ID, pass the Join URL from the POST output response:

    
    GET https://graph.microsoft.com/v1.0/me/onlineMeetings?$filter=joinWebUrl%20eq%20'joinUrlfromtheaboveresponse'
    
    

    User's image

    Update the meeting by setting "recordAutomatically": true

    
    PATCH https://graph.microsoft.com/v1.0/me/onlineMeetings/MeetingID
    
    {
    
    "recordAutomatically": true
    
    }
    
    

    User's image

    Workaround 2: Otherwise directly create online meeting and set "recordAutomatically": true. Refer this MsDoc

    Reference:

    Is it possible to automatically record an event created through graph API? - Microsoft Q&A by TH-4749-MSFT Hope this helps!


    If this answers your query, do click Accept Answer and Yes for was this answer helpful, which may help members with similar questions.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.


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.