Forum Widgets
Latest Discussions
Failed to get the data for the MS Graph API with status code 206 while using v1
I am getting intermittently response with status code 206. I am using v1 graph api. Mostly observed while fetching alerts for Office 365 Security and Compliance vendor. We are fetching alerts 5 minutes interval. sample url -> https://graph.microsoft.com/v1.0/security/alerts?$filter=vendorInformation/provider eq 'Office 365 Security and Compliance' and createdDateTime ge 2025-05-17T09:00:00.000Z and createdDateTime lt 2025-05-17T09:10:00.000Z Is there any way to handle this?esanya2280May 19, 2025Copper Contributor9Views0likes0CommentsGraph API upload session creation fails
Graph API upload session creation fails if the "check out required" is set to no and you try to replace the same file with same name. Replace conflict behavior doesn't work while creating the session. Only if you check out the file first it works. The question is if "check out required" is set to false, why do we need to check out the file and then create a session for replacing the file with same name?SurajRautDevMay 16, 2025Copper Contributor10Views0likes0CommentsIssue with Downloading Teams Sticker via Graph API - HTTP 400 Bad Request
Hi all, I am encountering an issue when attempting to download a sticker from Microsoft Teams using the Graph API. Below are the details of my request and the problem I am facing: Issue Description: I am using the following API format to download a sticker: GET https://graph.microsoft.com/v1.0/teams/xxx/messages/yyy/hostedContents/zzz/$value The request returns an HTTP 400 Bad Request response. The error details are as follows: { "error": { "code": "BadRequest", "message": "Provided hosted content identifier is invalid." }} Upon decoding zzz part of the API request URL, I obtained the following information: id=,type=1,url=https://us-prod.asyncgw.teams.microsoft.com/v1/url/content?url=https%3a%2f%2fstatic.wixstatic.com%2fmedia%2f4b00a4_e293905cf80f4ba4853c80a0a98dd748~mv2.png From the decoded data, it appears that the id field is empty. I suspect that this might be the reason why I am receiving the HTTP 400 Bad Request response. Questions: Has anyone encountered a similar issue when attempting to download a hosted sticker from Teams via the Graph API? Is there a specific reason why the id field is empty in the decoded content information? How can I resolve this issue and successfully retrieve the sticker content? Any insights or guidance on resolving this issue would be greatly appreciated. Thank you for your support. Best regards, KeinKevinChen0512May 16, 2025Copper Contributor110Views0likes5CommentsUnexpected 429 Errors from SharePoint /list and /content APIs – Not Near Documented Limits
Hi everyone, I'm currently working with the Microsoft Graph /list API to retrieve files from a SharePoint document library and then using the /content endpoint to download each file. After processing approximately 1000 records, I began receiving 429 Too Many Requests errors. On reviewing the API traffic from my application, I found that we're only making about 150 API calls per minute, which is well below the documented thresholds. According to Microsoft’s guidance on avoiding throttling in SharePoint Online (link to docs), the usage is nowhere near the stated API or egress limits — especially the tenant-level thresholds like 1,200 API calls/min or 100GB/hour egress. What’s puzzling is the lack of transparency — I’m unable to find any dashboards, logs, or reports in Microsoft 365 or Entra that show how many API requests are being made or what limits are being approached. My questions: Are there any hidden or undocumented limits (e.g., per-user, per-app, or per-site collection)? Could /content downloads have higher cost per call or impact the limit differently? Is there any way to monitor detailed API usage against SharePoint or Graph API from the Microsoft portal? Would appreciate any guidance or insights from others who’ve faced similar issues! Thanks in advance!Santosh_HegdeMay 15, 2025Copper Contributor8Views0likes0CommentsMS Bookings API - Can't create staff member using MS Bookings API
Hi I'm following this tutorial to use MS Bookings API ( https://learn.microsoft.com/en-us/graph/api/resources/booking-api-overview?view=graph-rest-1.0 ) but I'm stuck in "Add individual staff members for the business" step, the API response is here's my sample request : { "displayName":"Test", "emailAddress": "email address removed for privacy reasons", "role": "externalGuest" } and I always got this error response even that I've provided name and email address { "error": { "code": "ErrorInvalidOperation", "message": "Cannot create a booking staff without name and email.", "innerError": { "date": "2023-09-13T09:27:52", "request-id": "5f90921e-1d45-42c4-ab96-78ff5b6a958b", "client-request-id": "5f90921e-1d45-42c4-ab96-78ff5b6a958b" } } } anyone experience the same issue ? is there any rules on which email address that can be used as staff member ? Regards, HenryHenry_888May 09, 2025Copper Contributor1.2KViews2likes5CommentsGet install apps on devices without having to query each app?
Is there a way to query installed apps on all devices rather than having to query each app to list which devices has it installed? I am able to get his working: https://graph.microsoft.com/v1.0/deviceManagement/detectedApps/<app_id>/managedDevices?$select=id,deviceName But we have 4K plus apps so I need to do 4K API calls which is slow although I could live with that, but I get "TooManyRequests" errorsTorWCMay 05, 2025Copper Contributor63Views1like3CommentsMicrosoft Graph Security API response does not have all info.
GET securityalertsalertsId http request was successfully made and received. The alert was a DLP alert and it contained the file path and file name associated with it in the actual defender tool. However, the http request did not return that information back despite it having a return parameter of filestates.patelvinit04May 02, 2025Copper Contributor19Views0likes1CommentConnect REST.value table with REST.start, REST.end, REST.location and REST.attendees table.
I successfully retrieved calendar data in our Timextender environment using the following Microsoft Graph API call: https://graph.microsoft.com/v1.0/users/{Id}/calendar/calendarView?startDateTime={StartDateTime}&endDateTime={EndDateTime}&$top=1000. While I can access the necessary information, it is returned in separate tables, and I am unable to locate any ID or Key columns to establish connections between these tables. Could you kindly advise how I might combine the data into a single dataset? Specifically, I would like to consolidate details such as the start time, end time, locations, and attendees of each event.miesbMay 01, 2025Copper Contributor9Views0likes0CommentsonBehalfOfUserMri cannot be null or empty - Team installedApps
Hi, Posting this in the Graph community as I suspect the issue is Graph related since I can reproduce this via PowerShell script as well. Anyone else with this issue? Reading up on the documentation then there is nothing on the "onBehalfOfUserMri" Background: I have an flow that is via an HTTP Request call installing an App on a Team. This via an Service Principal in Azure using Client Id and Client Secret. Reference to the Graph API call can be found here. The flow has been running for years without any issues until yesterday. Error: Graph Error Message: onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri') Details: I have been able to reproduce this issue in PowerShell as well: Write-Error: Graph Error Message: onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri') Write-Error: Graph Inner Error: { "code": "InvalidRequest", "message": "onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri')", "details": [], "date": "2025-04-24T15:02:02", "request-id": "4b71b933-...-...-...-094bfa5b78f4", "client-request-id": "4b71b933-...-...-...-094bfa5b78f4" }EPNAdamApr 25, 2025Iron Contributor124Views0likes3CommentsPin a message in a channel in MS Teams using MS Graph API
I've created a MS Teams app and as part of it's functionality, it has to pin the message (in both one-on-one chat and in a channel) on behalf of the user I'm using below API to pin a message in a channel in MS Teams https://graph.microsoft.com/v1.0/chats/<chatID>/pinnedMessages Endpoint: - POST https://graph.microsoft.com/v1.0/chats/19:....@thread.tacv2/pinnedMessages Body: { "email address removed for privacy reasons": "https://graph.microsoft.com/v1.0/chats/19:....@thread.tacv2/messages/<message_id>" } Note: - 19:....@thread.tacv2 is the chatID of the channel And I get a successful response as below 201 Created { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#chats('19%3.......%40thread.tacv2')/pinnedMessages/$entity", "id": "<message_id>" } But when I go that particular channel, I don't see the message as the pinned message in the channel But when I try to get the list of pinned message in a channel using below API, it gives the response that the above message which I pinned. But I don't see it in the channel in MS Teams. And I'm facing this issue only while pinning the message in the channel using MS Graph API. I don't face the same issue with one-on-one chat with the bot I've created.nikhilkuntaApr 22, 2025Copper Contributor56Views0likes1Comment
Resources
Tags
- api226 Topics
- Office Graph158 Topics
- developer117 Topics
- office 36594 Topics
- Graph API28 Topics
- App26 Topics
- Microsoft Graph Api20 Topics
- Microsoft Graph14 Topics
- graph11 Topics
- Delve9 Topics