Your answer is not correct. Please see https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http
Kind regards,
Alex
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
array(1) {
["error"]=>
array(3) {
["code"]=>
string(12) "Unauthorized"
["message"]=>
string(12) "Unauthorized"
["innerError"]=>
array(3) {
["date"]=>
string(19) "2021-06-30T09:58:22"
["request-id"]=>
string(36) "6f7eae28-fefe-43a5-a5cf-51f6eb396ae9"
["client-request-id"]=>
string(36) "6f7eae28-fefe-43a5-a5cf-51f6eb396ae9"
}
}
}
Your answer is not correct. Please see https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http
Kind regards,
Alex
Try the above API call in delegated permission scenario which will work. If you try with application permission scenario, then it's not supported. Here's the documentation for it.