@@ -57,51 +57,15 @@ The following example shows how to call this API.
57
57
### Request
58
58
The following example shows a request.
59
59
60
- # [ HTTP] ( #tab/http )
61
60
<!-- {
62
61
"blockType": "request",
63
- "sampleKeys": ["72a7baec-c3e9-4213-a850-f62de0adad5f","1b6df208-ea5a-475c-8dd2-b92f693c928a"],
64
62
"name": "educationassignment_publish_2"
65
63
}-->
66
64
67
65
``` http
68
- POST https://graph.microsoft.com/beta/education/classes/72a7baec-c3e9-4213-a850-f62de0adad5f /assignments/1b6df208-ea5a-475c-8dd2-b92f693c928a /publish
66
+ POST https://graph.microsoft.com/beta/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070 /assignments/bb8994da-8a57-4b64-9fd9-108099f3940f /publish
69
67
```
70
68
71
- # [ C#] ( #tab/csharp )
72
- [ !INCLUDE [ sample-code] ( ../includes/snippets/csharp/educationassignment-publish-2-csharp-snippets.md )]
73
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
74
-
75
- # [ CLI] ( #tab/cli )
76
- [ !INCLUDE [ sample-code] ( ../includes/snippets/cli/educationassignment-publish-2-cli-snippets.md )]
77
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
78
-
79
- # [ Go] ( #tab/go )
80
- [ !INCLUDE [ sample-code] ( ../includes/snippets/go/educationassignment-publish-2-go-snippets.md )]
81
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
82
-
83
- # [ Java] ( #tab/java )
84
- [ !INCLUDE [ sample-code] ( ../includes/snippets/java/educationassignment-publish-2-java-snippets.md )]
85
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
86
-
87
- # [ JavaScript] ( #tab/javascript )
88
- [ !INCLUDE [ sample-code] ( ../includes/snippets/javascript/educationassignment-publish-2-javascript-snippets.md )]
89
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
90
-
91
- # [ PHP] ( #tab/php )
92
- [ !INCLUDE [ sample-code] ( ../includes/snippets/php/educationassignment-publish-2-php-snippets.md )]
93
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
94
-
95
- # [ PowerShell] ( #tab/powershell )
96
- [ !INCLUDE [ sample-code] ( ../includes/snippets/powershell/educationassignment-publish-2-powershell-snippets.md )]
97
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
98
-
99
- # [ Python] ( #tab/python )
100
- [ !INCLUDE [ sample-code] ( ../includes/snippets/python/educationassignment-publish-2-python-snippets.md )]
101
- [ !INCLUDE [ sdk-documentation] ( ../includes/snippets/snippets-sdk-documentation-link.md )]
102
-
103
- ---
104
-
105
69
### Response
106
70
The following example shows the response.
107
71
@@ -115,29 +79,34 @@ The following example shows the response.
115
79
HTTP/1.1 200 Ok
116
80
117
81
{
118
- "@odata.context": "https://graph.microsoft.com/beta/$metadata#educationAssignment",
119
- "@odata.type": "#microsoft.graph.educationAssignment",
120
- "classId": "72a7baec-c3e9-4213-a850-f62de0adad5f",
121
- "displayName": "Reading Test 09.03 3",
82
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.educationAssignment",
83
+ "classId": "37d99af7-cfc5-4e3b-8566-f7d40e4a2070",
84
+ "displayName": "publish assignment 02 - draft",
122
85
"closeDateTime": null,
123
- "dueDateTime": "2021-09-05T06:59 :00Z",
86
+ "dueDateTime": "2025-05-12T18:29 :00Z",
124
87
"assignDateTime": null,
125
88
"assignedDateTime": null,
126
89
"allowLateSubmissions": true,
127
90
"resourcesFolderUrl": null,
128
- "createdDateTime": "2021-09-03T23:26:35.4182773Z",
129
- "lastModifiedDateTime": "2021-09-03T23:28:05.0704312Z",
91
+ "feedbackResourcesFolderUrl": null,
92
+ "createdDateTime": "2025-05-08T18:32:27.2633843Z",
93
+ "lastModifiedDateTime": "2025-05-08T18:33:46.9004801Z",
130
94
"allowStudentsToAddResourcesToSubmission": true,
131
95
"status": "published",
132
- "notificationChannelUrl": null,
133
- "webUrl": "https://teams.microsoft.com/l/entity/66aeee93-507d-479a-a3ef-8f494af43945/classroom?context=%7B%22subEntityId%22%3A%22%7B%5C%22version%5C%22%3A%5C%221.0%5C%22,%5C%22config%5C%22%3A%7B%5C%22classes%5C%22%3A%5B%7B%5C%22id%5C%22%3A%5C%2272a7baec-c3e9-4213-a850-f62de0adad5f%5C%22,%5C%22displayName%5C%22%3Anull,%5C%22assignmentIds%5C%22%3A%5B%5C%221b6df208-ea5a-475c-8dd2-b92f693c928a%5C%22%5D%7D%5D%7D,%5C%22action%5C%22%3A%5C%22navigate%5C%22,%5C%22view%5C%22%3A%5C%22assignment-viewer%5C%22%7D%22,%22channelId%22%3Anull%7D",
134
- "addToCalendarAction": "none",
135
- "addedStudentAction": "none",
136
- "id": "1b6df208-ea5a-475c-8dd2-b92f693c928a",
137
- "grading": null,
96
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/channels/37d99af7-cfc5-4e3b-8566-f7d40e4a2070",
97
+ "webUrl": "https://teams.microsoft.com/l/entity/66aeee93-507d-479a-a3ef-8f494af43945/classroom?context=%7B%22subEntityId%22%3A%22%7B%5C%22version%5C%22%3A%5C%221.0%5C%22,%5C%22config%5C%22%3A%7B%5C%22classes%5C%22%3A%5B%7B%5C%22id%5C%22%3A%5C%2237d99af7-cfc5-4e3b-8566-f7d40e4a2070%5C%22,%5C%22assignmentIds%5C%22%3A%5B%5C%22bb8994da-8a57-4b64-9fd9-108099f3940f%5C%22%5D%7D%5D%7D,%5C%22action%5C%22%3A%5C%22navigate%5C%22,%5C%22view%5C%22%3A%5C%22assignment-viewer%5C%22,%5C%22appId%5C%22%3A%5C%22de8bc8b5-d9f9-48b1-a8ad-b748da725064%5C%22%7D%22,%22channelId%22%3Anull%7D",
98
+ "addToCalendarAction": "studentsAndTeamOwners",
99
+ "addedStudentAction": "assignIfOpen",
100
+ "languageTag": "en-US",
101
+ "moduleUrl": null,
102
+ "id": "bb8994da-8a57-4b64-9fd9-108099f3940f",
138
103
"instructions": {
139
- "content": "",
140
- "contentType": "text"
104
+ "content": "publish assignment 02 - draft",
105
+ "contentType": "html"
106
+ },
107
+ "grading": {
108
+ "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
109
+ "maxPoints": 100
141
110
},
142
111
"assignTo": {
143
112
"@odata.type": "#microsoft.graph.educationAssignmentClassRecipient"
@@ -146,15 +115,15 @@ HTTP/1.1 200 Ok
146
115
"application": null,
147
116
"device": null,
148
117
"user": {
149
- "id": "f3a5344e-dbde-48b0-be24-b5b62a243836 ",
118
+ "id": "fffafb29-e8bc-4de3-8106-be76ed2ad499 ",
150
119
"displayName": null
151
120
}
152
121
},
153
122
"lastModifiedBy": {
154
123
"application": null,
155
124
"device": null,
156
125
"user": {
157
- "id": "AAAAAAAA-0123-4567-89AB-1B4BB48C3119 ",
126
+ "id": "00000003-0000-0000-c000-000000000000 ",
158
127
"displayName": null
159
128
}
160
129
}
0 commit comments