Updates the specific webhook
Command: spo list webhook set [options]
Options:
-u, --webUrl <webUrl> | URL of the site where the list which contains the webhook is located
-l, --listId [listId] | ID of the list which contains the webhook which should be updated. Specify either id or title but not both
-t, --listTitle [listTitle] | Title of the list which contains the webhook which should be updated. Specify either id or title but not both
-i, --id <id> | ID of the webhook to update.
-n, --notificationUrl [notificationUrl] | The new notification url
-e, --expirationDateTime [expirationDateTime] | The new expiration date
Usage:
Update the expiration date with a date and time
spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85 --expirationDateTime '2019-01-21T17:00:00.000Z'
Update the expiration date
spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85 --expirationDateTime '2019-02-19'
Update the notification url
spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85 --notificationUrl 'https://my-func.azurewebsites.net/webhook'
Update the notification url and expiration date
spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85 --notificationUrl 'https://my-func.azurewebsites.net/webhook' --expirationDateTime '2019-03-12'
Updates the specific webhook
Command: spo list webhook set [options]
Options:
-u, --webUrl <webUrl> | URL of the site where the list which contains the webhook is located
-l, --listId [listId] | ID of the list which contains the webhook which should be updated. Specify either id or title but not both
-t, --listTitle [listTitle] | Title of the list which contains the webhook which should be updated. Specify either id or title but not both
-i, --id <id> | ID of the webhook to update.
-n, --notificationUrl [notificationUrl] | The new notification url
-e, --expirationDateTime [expirationDateTime] | The new expiration date
Usage:
Update the expiration date with a date and time
Update the expiration date
Update the notification url
Update the notification url and expiration date