Skip to content

New command: spo list webhook set #651

@arjenbloemsma

Description

@arjenbloemsma

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'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions