Reputation: 6065
According to this https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/message_update
I have to do individual patch requests to update messages (e.g. marking them as unread or something).
But this becomes a problem when there are too many (mark 10 emails as unread from my custom dashboard powered by microsoft's graph api)
Is there a way to update multiple emails simultaneously?
Upvotes: 1
Views: 737
Reputation: 2447
JSON batching is now available in the beta endpoint that will let you update multiple messages at once. Docs are at https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching.
We also have batching samples in the Graph Explorer so you can easily try out batching in your browser.
Upvotes: 3
Reputation: 17702
Graph doesn't support batching multiple calls yet. You can currently batch if you call the Outlook endpoint directly (https://msdn.microsoft.com/en-us/office/office365/api/batch-outlook-rest-requests).
Upvotes: 1