educationAssignment resource type
Namespace: microsoft.graph
Represents a task or unit of work assigned to a student or team member in a class as part of their study.
Assignments contain handouts and tasks that the teacher wants the student to work on. Each student assignment has an associated submission that contains any work their teacher asked to be turned in. Only teachers or team owners can create assignments. A teacher can add scores and feedback to the submission turned in by the student.
When an assignment is created, it is in a draft state. Students can't see the assignment, and submissions aren't created. You can change the status of an assignment by using the publish action. You can't use a PATCH request to change the assignment status.
The assignment APIs are exposed in the class namespace.
Inherits from entity.
Methods
Method | Return Type | Description |
---|---|---|
Create assignment resource | educationAssignmentResource | Create a new educationAssignmentResource by posting to the resources collection. |
Get assignment | educationAssignment | Read properties and relationships of an educationAssignment object. |
Update | educationAssignment | Update an educationAssignment object. |
Delete | None | Delete an educationAssignment object. |
Publish | educationAssignment | Change the state of an educationAssignment object from draft to published. |
Set up assignment resources folder | string | Create a SharePoint folder (under predefined location) to upload files as assignment resources. |
Set up assignment feedback resources folder | educationAssignment | Create a SharePoint folder to upload feedback files for a given educationSubmission. |
List resources | educationAssignmentResource collection | Get an educationAssignmentResource object collection. |
List submissions | educationSubmission collection | Get an educationSubmission object collection. |
List categories | educationCategory collection | Get an educationCategory object collection. |
Add categories | educationCategory | Assign an educationCategory belonging to the class to this assignment. |
Remove category | None | Remove an educationCategory belonging to the class from this assignment. |
Attach rubric | None | Attach an existing educationRubric to this assignment. |
Remove rubric | None | Detach the educationRubric from this assignment. |
Get delta | educationAssignment collection | Get a list of newly created or updated educationAssignment objects without having to perform a full read of the collection. |
Add educationGradingCategory | educationGradingCategory | Add an educationGradingCategory to the educationGradingCategory collection. |
Remove educationGradingCategory | None | Remove an educationGradingCategory object from the educationGradingCategory collection. |
Activate assignment | educationAssignment | Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. |
Deactivate assignment | educationAssignment | Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. |
Properties
Property | Type | Description |
---|---|---|
addedStudentAction | String | Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none . Supported values are: none , assignIfOpen . For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment shouldn't be assigned to new students. |
addToCalendarAction | educationAddToCalendarOptions | Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none , studentsAndPublisher , studentsAndTeamOwners , unknownFutureValue , and studentsOnly . You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: studentsOnly . The default value is none . |
allowLateSubmissions | Boolean | Identifies whether students can submit after the due date. If this property isn't specified during create, it defaults to true. |
allowStudentsToAddResourcesToSubmission | Boolean | Identifies whether students can add their own resources to a submission or if they can only modify resources added by the teacher. |
assignDateTime | DateTimeOffset | The date when the assignment should become active. If in the future, the assignment isn't shown to the student until this date. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
assignTo | educationAssignmentRecipient | Which users, or whole class should receive a submission object once the assignment is published. |
assignedDateTime | DateTimeOffset | The moment that the assignment was published to students and the assignment shows up on the students timeline. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
classId | String | Class to which this assignment belongs. |
closeDateTime | DateTimeOffset | Date when the assignment is closed for submissions. This is an optional field that can be null if the assignment doesn't allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
createdBy | identitySet | Who created the assignment. |
createdDateTime | DateTimeOffset | Moment when the assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
displayName | String | Name of the assignment. |
dueDateTime | DateTimeOffset | Date when the students assignment is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
feedbackResourcesFolderUrl | String | Folder URL where all the feedback file resources for this assignment are stored. |
grading | educationAssignmentGradeType | How the assignment will be graded. |
id | String | The unique identifier for the assignment. Inherited from entity. Read-only. |
instructions | itemBody | Instructions for the assignment. The instructions and the display name tell the student what to do. |
lastModifiedBy | identitySet | Who last modified the assignment. |
lastModifiedDateTime | DateTimeOffset | The date and time on which the assignment was modified. A student submission doesn't modify the assignment; only teachers can update assignments. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
moduleUrl | string | The URL of the module from which to access the assignment. |
notificationChannelUrl | String | Optional field to specify the URL of the channel to post the assignment publish notification. If not specified or null, defaults to the General channel. This field only applies to assignments where the assignTo value is educationAssignmentClassRecipient. Updating the notificationChannelUrl isn't allowed after the assignment is published. |
resourcesFolderUrl | string | Folder URL where all the file resources for this assignment are stored. |
status | educationAssignmentStatus | Status of the assignment. You can't PATCH this value. Possible values are: draft , scheduled , published , assigned , unknownFutureValue , inactive . Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive . |
webUrl | string | The deep link URL for the given assignment. |
Relationships
Relationship | Type | Description |
---|---|---|
categories | educationCategory collection | When set, enables users to easily find assignments of a given type. Read-only. Nullable. |
resources | educationAssignmentResource collection | Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. |
rubric | educationRubric | When set, the grading rubric attached to this assignment. |
submissions | educationSubmission collection | Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. |
gradingCategory | educationGradingCategory collection | When set, enables users to weight assignments differently when computing a class average grade. |
JSON representation
The following JSON representation shows the resource type.
{
"addedStudentAction": "String",
"addToCalendarAction": "String",
"allowLateSubmissions": "Boolean",
"allowStudentsToAddResourcesToSubmission": "Boolean",
"assignDateTime": "String (timestamp)",
"assignTo": {"@odata.type": "microsoft.graph.educationAssignmentRecipient"},
"assignedDateTime": "String (timestamp)",
"classId": "String",
"closeDateTime": "String (timestamp)",
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
"createdDateTime": "String (timestamp)",
"displayName": "String",
"dueDateTime": "String (timestamp)",
"feedbackResourcesFolderUrl": "String",
"grading": {"@odata.type": "microsoft.graph.educationAssignmentGradeType"},
"id": "String (identifier)",
"instructions": {"@odata.type": "microsoft.graph.itemBody"},
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)",
"moduleUrl": "String",
"notificationChannelUrl": "String",
"resourcesFolderUrl": "String",
"status": "String",
"webUrl": "String"
}