Share via

Resource Not Found

Fernando Sanchez 41 Reputation points
2022-09-30T07:15:21.12+00:00

Hi, we have an application that wants to allow our clients to create meeting in Teams on our plattform with their users. We don't know what else to do.
We have created an application and it's well configured. We gave the user permissions to access the outlook and we have tried to access Calendar's Endpoint using an account with a Microsoft 365's Subscription. Is anything else that we are missing? We sould appreciate your help a lot.

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 46,456 Reputation points
    2022-09-30T08:28:55.633+00:00

    Hi @Fernando Sanchez

    Next you need to create an event in the default or specific calendar, after which the Teams meeting you specify in the event will be added to the calendars of attendees (users of your customers) and organizers (your customers).

    POST https://graph.microsoft.com/v1.0/users/{user id}/events  
    Prefer: outlook.timezone="Pacific Standard Time"  
    Content-type: application/json  
      
    {  
      "subject": "Let's go for lunch",  
      "body": {  
        "contentType": "HTML",  
        "content": "Does noon work for you?"  
      },  
      "start": {  
          "dateTime": "2017-04-15T12:00:00",  
          "timeZone": "Pacific Standard Time"  
      },  
      "end": {  
          "dateTime": "2017-04-15T14:00:00",  
          "timeZone": "Pacific Standard Time"  
      },  
      "location":{  
          "displayName":"Harry's Bar"  
      },  
      "attendees": [  
        {  
          "emailAddress": {  
            "address":"******@contoso.onmicrosoft.com",  
            "name": "Samantha Booth"  
          },  
          "type": "required"  
        }  
      ],  
      "allowNewTimeProposals": true,  
      "transactionId":"7E163156-7762-4BEB-A1C6-729EA81755A7"  
    }  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. Ilkin Javadov 1 Reputation point
    2022-09-30T07:43:02.913+00:00

    Good job. !

    Was this answer helpful?

    0 comments No comments

Your answer

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