Question:
You are building an application that leverages the Microsoft Graph API to manage user activities. You need to retrieve the most recent activities for a user and also be able to update a specific activity. Which REST API calls should you opt for?
Answer:
The GET
method fetches the specified resources, and the /recent
endpoint specifies that only the most recent activities should be returned.
The PATCH
method is used for partial updates to a resource. In this case, you would replace {activityId}
with the ID of the activity you wish to update.