Skip to content

Instantly share code, notes, and snippets.

@garrytrinder
Last active July 27, 2023 07:58
Show Gist options
  • Save garrytrinder/5cb396a48a0f5dddf856a71beaf33d91 to your computer and use it in GitHub Desktop.
Save garrytrinder/5cb396a48a0f5dddf856a71beaf33d91 to your computer and use it in GitHub Desktop.
example batch
POST graph.microsoft.com/v1.0/$batch
{
"requests": [
{
"url": "/me?$select=displayName,jobTitle,userPrincipalName",
"method": "GET",
"id": "1"
},
{
"url": "/me/messages?$filter=importance eq 'high'&$select=from,subject,receivedDateTime,bodyPreview",
"method": "GET",
"id": "2"
},
{
"url": "/me/events",
"method": "GET",
"id": "3"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment