Sharepoint Analytics API -- allTime suddenly empty, but lastSevenDays still works

Cassie 0 Reputation points
2025-05-01T11:37:52.3833333+00:00

Last week I was able to hit:

https://contoso.sharepoint.com/_api/v2.1/drives/{drive-id}/items/{item-id}/analytics/allTime?$expand=activities

And it would give me a response containing an activities array. However, this morning the activities array is missing from the response.

If I change to the lastSevenDays endpoint (no other changes -- same drive and file ID) then the activities array is present.

Am I doing something wrong? Or is there some outage?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,597 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.