Education Graph API getResourcesFolderUrl Deprecated

Pedro Monte 101 Reputation points
2021-05-18T10:50:27.873+00:00

Hello,

I saw that getResourcesFolderUrl endpoint will be deprecated on May 31, 2021 (https://learn.microsoft.com/en-us/graph/api/educationassignment-getresourcesfolderurl?view=graph-rest-beta&tabs=http)

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.
10,570 questions
{count} votes

Accepted answer
  1. Tony Bear 81 Reputation points
    2021-05-23T23:34:00.957+00:00

    just saw this page :)

    https://learn.microsoft.com/en-us/graph/api/educationassignment-setupresourcesfolder?view=graph-rest-beta

    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
    2021-05-19T13:23:04.137+00:00

    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,

    Diana.


  2. Jan Schmidt 31 Reputation points
    2021-05-19T13:28:50.33+00:00

    I found a new Graph Call in the documentation here: https://learn.microsoft.com/en-us/graph/api/educationsubmission-setupresourcesfolder
    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
    2021-07-23T21:56:13.4+00:00

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

    0 comments No comments