I am trying to send a request with following body in ISE:
$body = @{
'roles'=['write'],
"grantedToIdentities": [{
"application": {
"id": "xx-7736-4e25-95ad-3fa95f62b66e",
"displayName": "Contoso Time Manager App"
}
}]
}
$Result = Invoke-RestMethod -Uri 'https://graph.microsoft.com/v1.0/sites/xx-53D2-xx-A368-A7F3E475F0A0/permissions' -Headers $Headers
write-host $Result
However I can see I need to escape the brackets. Any pointers on how to make a request like this?
