Error When Getting Education Classes via Microsoft Graph API: Unsupported Query

Nikos Theodoropoulos 0 Reputation points
2024-07-04T16:12:40.3933333+00:00

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,382 questions
{count} votes