Aufgaben auflistenList tasks
Namespace: microsoft.graphNamespace: microsoft.graph
Get the todoTask resources from the tasks navigation property of a specified todoTaskList.Get the todoTask resources from the tasks navigation property of a specified todoTaskList.
BerechtigungenPermissions
Eine der nachfolgenden Berechtigungen ist erforderlich, um diese API aufrufen zu können. Weitere Informationen, unter anderem zur Auswahl von Berechtigungen, finden Sie im Artikel zum Thema Berechtigungen.One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
BerechtigungstypPermission type | Berechtigungen (von der Berechtigung mit den wenigsten Rechten zu der mit den meisten Rechten)Permissions (from least to most privileged) |
---|---|
Delegiert (Geschäfts-, Schul- oder Unikonto)Delegated (work or school account) | Tasks.ReadWriteTasks.ReadWrite |
Delegiert (persönliches Microsoft-Konto)Delegated (personal Microsoft account) | Tasks.ReadWriteTasks.ReadWrite |
AnwendungApplication | Nicht unterstütztNot supported |
HTTP-AnforderungHTTP request
GET /me/todo/lists/{todoTaskListId}/tasks
GET /users/{id|userPrincipalName}/todo/lists/{todoTaskListId}/tasks
Optionale AbfrageparameterOptional query parameters
Diese Methode unterstützt einige der OData-Abfrageparameter zur Anpassung der Antwort.This method supports some of the OData query parameters to help customize the response. Allgemeine Informationen finden Sie unter OData-Abfrageparameter.For general information, see OData query parameters.
AnforderungsheaderRequest headers
NameName | BeschreibungDescription |
---|---|
AuthorizationAuthorization | Bearer {token}. Erforderlich.Bearer {token}. Required. |
AnforderungstextRequest body
Geben Sie für diese Methode keinen Anforderungstext an.Do not supply a request body for this method.
AntwortResponse
Wenn die Methode erfolgreich ist, werden der Antwortcode und eine Auflistung von 200 OK
todoTask-Objekten im Antworttext zurückgegeben.If successful, this method returns a 200 OK
response code and a collection of todoTask objects in the response body.
BeispieleExamples
AnforderungRequest
GET https://graph.microsoft.com/v1.0/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks
AntwortResponse
Hinweis: Das hier gezeigte Antwortobjekt kann zur besseren Lesbarkeit gekürzt werden.Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value":[
{
"@odata.etag":"W/\"xzyPKP0BiUGgld+lMKXwbQAAgdhkVw==\"",
"importance":"low",
"isReminderOn":false,
"status":"notStarted",
"title":"Linked entity new task 1",
"createdDateTime":"2020-07-08T11:15:19.9359889Z",
"lastModifiedDateTime":"2020-07-08T11:15:20.0614375Z",
"id":"AQMkADAwATM0MDAAMS0yMDkyLWVjMzYtMDACLTAwCgBGAAAD",
"body":{
"content":"",
"contentType":"text"
},
"linkedResources@odata.context":"https://graph.microsoft.com/beta/$metadata#users('todoservicetest2412201901%40outlook.com')/todo/lists('35e2-35e2-721a-e235-1a72e2351a7')/tasks('AQMkADAwATM0MDAAMS0yMDkyLWVjMzYtMDACLTAwCgBGAAAD')/linkedResources",
"linkedResources":[
{
"applicationName":"Partner App Name",
"displayName":"Partner App Name",
"externalId":"teset1243434",
"id":"30911960-7321-4cba-9ba0-cdb68e2984c7"
}
]
}
]
}