title | description | author | ms.localizationpriority | ms.subservice | doc_type |
---|---|---|---|---|---|
List assignmentCategories |
Retrieve a list of category objects. |
mmast-msft |
medium |
education |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Retrieve a list of educationCategory objects. Only teachers can perform this operation.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
GET /education/classes/{id}/assignmentCategories
This method supports the OData query parameters to help customize the response.
All properties are supported for the query parameters $filter
and $orderby
.
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK
response code and a collection of educationCategory objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/beta/education/classes/4797d052-ebf5-4018-a088-e11adc6b2cbb/assignmentCategories
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/education/classes('4797d052-ebf5-4018-a088-e11adc6b2cbb')/assignmentCategories",
"value": [
{
"displayName": "Quizzes",
"id": "f997a279-6bcf-429e-b1d0-d2320c4b84ab"
},
{
"displayName": "Homework",
"id": "9b8f8f88-ddfc-4aad-9fe9-280513fffc74"
}
]
}
The following example shows a request.
GET https://graph.microsoft.com/beta/education/classes/2003c52e-807a-4186-9b49-60c573095461/assignmentCategories?$filter=id eq 'd4cb4f68-9136-48d3-9054-c1208ea274f0'
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('2003c52e-807a-4186-9b49-60c573095461')/assignmentCategories",
"value": [
{
"displayName": "2022-11-09T20_16_24_105Z",
"id": "d4cb4f68-9136-48d3-9054-c1208ea274f0"
}
]
}
The following example shows a request.
GET https://graph.microsoft.com/beta/education/classes/2003c52e-807a-4186-9b49-60c573095461/assignmentCategories?$orderby=displayName
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('2003c52e-807a-4186-9b49-60c573095461')/assignmentCategories",
"@odata.nextLink": "https://graph.microsoft.com/beta/education/classes/2003c52e-807a-4186-9b49-60c573095461/assignmentCategories?$orderby=displayName&$skiptoken=MyZRVkZCUVVGQlFVRk5aelJCUVVGQlFVRkJRWGxCUVVGQlIyZE1VMjFyVFVrMk1HbFNablZPTXpkdVRpOVlkejA5",
"value": [
{
"displayName": "2019-04-05T21_30_03_125Z",
"id": "0c3c2de5-d317-42b9-a4a7-dede7a87f6df"
},
{
"displayName": "2019-04-05T21_30_21'941Z",
"id": "ec2a0bfe-f7c5-4a33-a5ea-58db087cb1c7"
},
{
"displayName": "2019-04-17T18_46_15_996Z",
"id": "5d4458a4-0784-491b-b4eb-643daf3408d0"
},
{
"displayName": "2019-04-22T22_01_29_919Z",
"id": "012c321e-70af-4b56-8949-1d228cbbdf35"
},
{
"displayName": "2019-04-23T02_04_51_925Z",
"id": "72fc6ce0-af91-4eaf-b675-b979aa7540c2"
},
{
"displayName": "2019-04-24T18_24_54_540Z",
"id": "3c8b14c1-a118-44fb-a308-8175f3dec179"
},
{
"displayName": "2019-04-24T18_25_05_792Z",
"id": "328b7715-86d4-4580-aae7-3dc80f570b49"
},
{
"displayName": "2019-05-16T23_19_05_865Z",
"id": "c71c2e76-4af4-4794-a6eb-fe86d30d9209"
},
{
"displayName": "2019-05-16T23_19_06_340Z",
"id": "29d62f01-1d70-447f-8c03-2ef19d3911f6"
},
{
"displayName": "2019-05-16T23_19_06'504Z",
"id": "63219333-859a-45f0-9003-bc1512b8c6a5"
}
]
}