Skip to content

spo list webhook list

Lists all webhooks for the specified list

Usage

m365 spo list webhook list [options]

Options

-u, --webUrl <webUrl>
URL of the site where the list to retrieve webhooks for is located
-i, --listId [listId]
ID of the list to retrieve all webhooks for. Specify either listId or listTitle but not both
-t, --listTitle [listTitle]
Title of the list to retrieve all webhooks for. Specify either listId or listTitle but not both
--id [id]
(deprecated. Use listId instead) ID of the list to retrieve all webhooks for. Specify either id or title but not both
--title [title]
(deprecated. Use listTitle instead) Title of the list to retrieve all webhooks for. Specify either id or title but not both
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

List all webhooks for a list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf

List all webhooks for a list with title Documents located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents