Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how to use Microsoft Graph to embed a Teams app in an assignment to add additional functionality.
Note: You can use Graph Explorer to test the APIs mentioned in this article.
Install the application in your team
Before you can embed an application in an assignment, you need to make sure that the app is installed in your team. You can use the following APIs to get information about the apps installed in a team:
- List apps in a team: Get a list of apps installed in the specified team.
- Get a specific app installed in a team: Get information about an app installed in the specified team.
You can look for the required app in the app catalog; if it isn't installed in the team, you can use the following API:
- Add an app to a team: Install an app to the specified team.
Create the new assignment
An assignment represents a task or unit of work assigned to a student or team member in a class as part of their study. You can use the Create educationAssignment API to create a new assignment for the class.
Add the app resource
An education Teams app resource allows education service users to create and share assignments with embedded Teams applications. You can use the Create educationAssignmentResource API to create and load the app resource into an assignment. This operation requires you to provide an educationTeamsAppResource in the request body.
Permissions
The teacher role is required to add a Teams app as a resource to assignments.