Search code examples
sharepointsharepoint-onlinesharepoint-rest-api

Can we create a SharePoint web-hook for any specific folder in a Document Library or for the Document Library itself?


I see in the documentation that we can create subscription web-hook on a list or on entire site. I want to know if I can create a subscription for a document library or some folder inside it.


Solution

  • As the documentation says, the SharePoint list webhooks cover the events corresponding to list item changes for a given SharePoint list or a document library.

    So we could create a subscription for a document library, but cannot create it on the folder level.