When I'm issuing a POST request to generate a token for a datasource using a direct query connection: POST https://api.powerbi.com/v1.0/myorg/GenerateToken
I'm receiving the following error:
{ "error": { "code": "InvalidRequest", "message": "Generate token request for the proxy model should include the core model ID" } }
This happens only in cases when sending requests for reports using a direct query connection.
If it is expecting a "Core model Id" in such a scenario, cannot understand what is core model Id and how to pass it in the request body as the request body doesn't mention anything like model or modelId.
For the Request body structure, please refer: https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token