Is the API Endpoint GetActivitiesByInterval() not available for SubWebs?

Michael Schmitz 1 Reputation point
2023-01-10T12:33:26.167+00:00

Hello, is it possible that the endpoint getActivitiesByInterval() is not available on SubWebs?

Example: https://graph.microsoft.com/v1.0/sites/f0e857e0-3a3b-407b-9820-013de15e806e/sites/6c07ac49-14d1-434a-9988-97cd6d1ebc26/lists/f49c08ff-bebc-41f8-b799-5334572f00a4/items/8ef8b3da-8e70-4f0c-a2fe-888d9850f3e9/GetActivitiesByInterval(startDateTime='2022-11-01',endDateTime='2023-01-08',interval='day')

Always returns me with: Not Found - 404

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,808 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,075 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,611 Reputation points
    2023-01-10T13:48:45.033+00:00

    Hi @Anonymous ,

    From your endpoint, It looks like you are using sites/{siteID} twice.

    As per the documentation, this is the request endpoint:

    GET /sites/{site-id}/lists/{list-id}/items/{item-id}/getActivitiesByInterval(startDateTime='2017-05-01',endDateTime='2017-05-20',interval='week')
    

    Please check and validate the same.

    Hope this helps. If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.

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.