author | description | title | ms.localizationpriority | ms.subservice | doc_type |
---|---|---|---|---|---|
learafa |
Unfollow an item that the user is following. |
Unfollow drive item |
medium |
sharepoint |
apiPageType |
Namespace: microsoft.graph
Unfollow a driveItem.
Note: To follow an item, see Follow Item.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
DELETE /me/drive/following/{item-id}
DELETE /users/{user-id}/drive/following/{item-id}
POST /me/drive/items/{item-id}/unfollow
POST /users/{user-id}/drive/items/{item-id}/unfollow
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
No request body is required.
If successful, the API call returns a 204 No Content
. It doesn't return anything in the response body.
The following example shows a request.
This example unfollows an item identified by {item-id}
.
POST https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/unfollow
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
HTTP/1.1 204 No Content