Update educationAssignmentSettings

Namespace: microsoft.graph

Update the properties of an educationAssignmentSettings object. Only teachers can update these settings.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

PATCH /education/classes/{id}/assignmentSettings

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the educationAssignmentSettings object.

The following table shows the properties that are required when you update the educationAssignmentSettings.

Property Type Description
submissionAnimationDisabled Boolean Indicates whether turn-in celebration animation will be shown. A value of true indicates that the animation will not be shown. Default value is false.

Response

If successful, this method returns a 200 OK response code and an updated educationAssignmentSettings object in the response body.

Examples

Request

The following is an example of the request.

PATCH https://graph.microsoft.com/v1.0/education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignmentSettings
Content-Type: application/json

{
  "submissionAnimationDisabled": true
}

Response

The following is an example of the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "submissionAnimationDisabled": true
}