List taskFileAttachments
Namespace: microsoft.graph
Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes.
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) | Tasks.Read, Tasks.ReadWrite |
Delegated (personal Microsoft account) | Tasks.Read, Tasks.ReadWrite |
Application | Tasks.Read.All, Tasks.ReadWrite.All |
HTTP request
GET /me/todo/lists/{todoTaskListId}/tasks/{todoTaskId}/attachments
GET /users/{id}/todo/lists/{id}/tasks/{id}/attachments
Optional query parameters
This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of taskFileAttachment objects in the response body.
Examples
Request
The following is an example of a request.
GET https://graph.microsoft.com/v1.0/me/todo/lists/AAMehdkfuhgAAA=/tasks/AAMkAGUzY5QKjAAA=/attachments
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
{
"value": [
{
"@odata.type": "#microsoft.graph.taskFileAttachment",
"id": "AAMkADliMm=",
"name": "flower.md",
"size": 2814,
"lastModifiedDateTime": "2022-06-09T10:40:52Z",
"contentType": "application/octet-stream"
},
{
"@odata.type": "#microsoft.graph.taskFileAttachment",
"id": "AAMkADliMmU5YjJlLTVmMmQtNGQzNS1iYjA0LTdmZTA2NTI0MTE5YwBGAAAAAADdOMUbUmCfTKa7OC-fqjkdBwBnu3olF7NfToRyJ2f__TNcAAAAAAESAABnu3olF7NfToRyJ2f__TNcAAHmG2K0AAABEgAQAFWmGvX71MhOrjRDhWM95yY=",
"name": "tree.jpg",
"size": 8591,
"lastModifiedDateTime": "2022-06-09T10:40:59Z",
"contentType": "image/jpeg"
}
]
}
Feedback
Submit and view feedback for