I am trying to create a worksheet using the Graph API and getting the below error. Everything on the URL seems right and I am unable to figure out what is causing the error. There is little help on the Graph API documentation also!
Error: { "error": { "code": "AccessDenied", "message": "Could not obtain a WAC access token.", "innerError": { "request-id": "44990b81-a8ee-489f-9fd8-d5f7c9a31bf1", "date": "2018-05-07T14:02:08" } } }
Microsoft documentation: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheetcollection_add
Any pointers to the solution or what I might be doing wrong is appreciated. Thanks.