ListExtensions.UpdateWebhookSubscription Method

Definition

Overloads

UpdateWebhookSubscription(List, Guid, String, DateTime, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

UpdateWebhookSubscription(List, WebhookSubscription, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

UpdateWebhookSubscription(List, String, String, DateTime, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

UpdateWebhookSubscription(List, Guid, String, DateTime, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

public static bool UpdateWebhookSubscription (this Microsoft.SharePoint.Client.List list, Guid subscriptionId, string webHookEndPoint, DateTime expirationDateTime, string accessToken = null);
Parameters
list
Microsoft.SharePoint.Client.List

The list to remove the Webhook subscription from

subscriptionId
Guid

The id of the subscription to remove

webHookEndPoint
String

Url of the web hook service endpoint (the one that will be called during an event)

expirationDateTime
DateTime

New web hook expiration date

accessToken
String

(optional) The access token to SharePoint

Returns

true if the removal succeeded, false otherwise

UpdateWebhookSubscription(List, WebhookSubscription, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

public static bool UpdateWebhookSubscription (this Microsoft.SharePoint.Client.List list, OfficeDevPnP.Core.Entities.WebhookSubscription subscription, string accessToken = null);
Parameters
list
Microsoft.SharePoint.Client.List

The list to remove the Webhook subscription from

subscription
WebhookSubscription

The subscription to update

accessToken
String

(optional) The access token to SharePoint

Returns

true if the removal succeeded, false otherwise

UpdateWebhookSubscription(List, String, String, DateTime, String)

Updates a Webhook subscription from the list Note: If the access token is not specified, it will cost a dummy request to retrieve it

public static bool UpdateWebhookSubscription (this Microsoft.SharePoint.Client.List list, string subscriptionId, string webHookEndPoint, DateTime expirationDateTime, string accessToken = null);
Parameters
list
Microsoft.SharePoint.Client.List

The list to remove the Webhook subscription from

subscriptionId
String

The id of the subscription to remove

webHookEndPoint
String

Url of the web hook service endpoint (the one that will be called during an event)

expirationDateTime
DateTime

New web hook expiration date

accessToken
String

(optional) The access token to SharePoint

Returns

true if the removal succeeded, false otherwise

Applies to