Table of contents
TOC
Collapse the table of content
Expand the table of content

ListExtensions.UpdateWebhookSubscription Method

SharePoint Dev Documents|Last Updated: 6/9/2017
|
1 Contributor

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

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static bool UpdateWebhookSubscription(this List list, Guid subscriptionId, String webHookEndPoint, DateTime expirationDateTime, String accessToken)

Parameters

list

  Type: Microsoft.SharePoint.Client.List
  The list to remove the Webhook subscription from

subscriptionId

  Type: System.Guid
  The id of the subscription to remove

webHookEndPoint

  Type: System.String
  Url of the web hook service endpoint (the one that will be called during an event)

expirationDateTime

  Type: System.DateTime
  New web hook expiration date

(optional) accessToken

  Type: System.String
  (optional) The access token to SharePoint

Return Value

Type: bool
true if the removal succeeded, false otherwise

See also

© 2018 Microsoft