Error When Getting Education Classes via Microsoft Graph API: Unsupported Query
Hello,
I’m currently working with the Microsoft Graph API to retrieve a list of classes for a signed-in account. Despite setting up my application registration and enabling the necessary API permissions (EduCurricula.Read, EduRoster.ReadBasic, openid, profile, User.Read—all with Delegated permissions), I encounter an error when making requests either via JavaScript or using a simple curl command.
The error message I receive is as follows:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Property 'extension_fe2174665583431c953114ff7268b7b3_Education_ObjectType' does not exist as a declared property or extension property.",
"innerError": {
"date": "2024-07-04T15:59:16",
"request-id": "7a673ab1-7ea7-4c51-a0ac-d889e7048364",
"client-request-id": "7a673ab1-7ea7-4c51-a0ac-d889e7048364"
}
}
}
Here is the curl command I used:
curl -H "Authorization: Bearer [MY_TOKEN]" https://graph.microsoft.com/v1.0/education/classes
From my research, it seems this type of error is typically associated with incorrect use of parameters in the API endpoint, although my request does not include any additional parameters.
Could anyone provide insights into what might be causing this issue, or suggest any modifications to resolve it?
Thanks