Enumerate activities (preview)
List the recent activities that took place on an item or under a hierarchy.
Note: Activities is in a limited Preview and not yet available to all tenants.
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) | Files.Read, Files.ReadWrite, Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
HTTP request
GET /drives/{drive-id}/activities
GET /drives/{drive-id}/items/{item-id}/activities
GET /sites/{site-id}/lists/{list-id}/activities
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/activities
Example
Request
GET /me/drive/activities
Response
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"action": {
"comment": {}
},
"actor": {
"user": {
"displayName": "Xavier Wilke"
}
},
"id": "EJalEvjV1EgIYFQAAAAAAA==",
"times": {
"recordedDateTime": "2017-07-29T18:34:40Z"
}
},
{
"action": {
"edit": {},
"version": {
"newVersion": "2.0"
}
},
"actor": {
"user": {
"displayName": "Judith Clemons"
}
},
"id": "cInT6/fV1EgFYFQAAAAAAA==",
"times": {
"recordedDateTime": "2017-07-29T16:23:35Z"
}
},
{
"action": {
"mention": {
"mentionees": [
{
"user": {
"displayName": "Judith Clemons"
}
}
]
}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "EBJa0vPV1EjFX1QAAAAAAA==",
"times": {
"recordedDateTime": "2017-07-28T20:14:14Z"
}
},
{
"action": {
"rename": {
"oldName": "Document2.docx"
}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "QFJFlfPV1Ei/X1QAAAAAAA==",
"times": {
"recordedDateTime": "2017-07-28T20:12:32Z"
}
},
{
"action": {
"create": {}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "IJydkPPV1Ei9X1QAAAAAAA==",
"times": {
"recordedDateTime": "2017-07-28T20:02:24Z"
}
}
]
}
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應