Education Graph API getResourcesFolderUrl Deprecated

Pedro Monte 101 Reputation points


I saw that getResourcesFolderUrl endpoint will be deprecated on May 31, 2021 (

at this moment is not working, giving me the error

"code": "invalidRequest",
"message": "The request is malformed or incorrect.",

I use this endpoint to create and get the URL of the Assigment resources folder so I can deploy the resources on my deployment process

On the documentation it says that I should used the resourcesFolderUrl but is null when I create a new assignment or when I get the assignment info.

At this moment I don't know how can I create this folder automatically. Someone have an idea how can use other endpoint to create and get the folder URL?

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

Accepted answer
  1. Tony Bear 81 Reputation points

    just saw this page :)

    going to run some test today to see if it works

3 additional answers

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points

    Hello @Pedro Monte if you know the OneDrive folder into which file-based resources should be placed to be part of an assignment resource kindly pass it in in the resourcesFolderUrl property as part of the create assignment request. Alternatively, you can update an existing assignment with the folder link once it is created.

    You can create this folder on your one drive if it does not exist, then use that url in the request above.

    Kindly let me know if this helps and if you have further questions,


  2. Jan Schmidt 31 Reputation points

    I found a new Graph Call in the documentation here:
    It is a new call to create the resource folder for a submission.

    If you find submission.resourcesFolderUrl == null you can now just call "/education/classes/{id}/assignments/{id}/submissions/{id}/setUpResourcesFolder" to create the folder.
    If you request the submission again afterwards, submission.resourcesFolderUrl is set and you can use it to upload files.

  3. Sharad Sharma 1 Reputation point Microsoft Employee

    Please refer to the official documentation - education-upload-resource-overview

    0 comments No comments