In my case I have this issue , anyone can advice what is "request is only valid with delegated authentication flow"
GuzzleHttp\Exception\ClientException
Client error: POST https://graph.microsoft.com/beta/me/contacts
resulted in a 400 Bad Request
response: {"error":{"code":"BadRequest","message":"/me request is only valid with delegated authentication flow.","innerError":{"date":"2021-10-17T15:46:10","request-id":"949","client-request-id":""}}}
Problem in integration
When i try to create a meeting via api appear this error:
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://graph.microsoft.com/v1.0/me/onlineMeetings
resulted in a 400 Bad Request
response: {"error":{"code":"BadRequest","message":"/me request is only valid with delegated authentication flow.","innerError":{"date":"2021-09-08T12:03:27","request-id":"61e43cf1-e5f6-41d2-b42c-f1699a0cc9fe","client-request-id":"61e43cf1-e5f6-41d2-b42c-f1699a0cc9fe"}}} in D:\xmp7\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:111 Stack trace: #0 D:\xmp7\htdocs\vendor\guzzlehttp\guzzle\src\Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 D:\xmp7\htdocs\vendor\guzzlehttp\promises\src\Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 D:\xmp7\htdocs\vendor\guzzlehttp\promises\src\Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 D:\xmp7\htdocs\vendor\guzzle in D:\xmp7\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 111
Who know how can solve this?
Thanks
2 answers
Sort by: Newest
-
T Senaratna 1 Reputation point
2021-10-17T15:53:37.93+00:00 -
Prithvi-MSFT 266 Reputation points Microsoft Vendor
2021-09-14T14:45:48.047+00:00 Hi @Angelo Belchior ,
Can you check once if you have required delegated or application permissions to create online meetings using graph API. You will require OnlineMeetings.ReadWrite permission. For more details you can refer permissions section of below document.
https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=httpThanks