Example #1
0
 /// <summary>
 /// Update entity in EntitySet Webhooks
 /// </summary>
 /// <remarks>
 /// Required permissions: Webhooks.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='webhookDto'>
 /// The entity to patch
 /// </param>
 public static WebhookDto PatchById(this IWebhooks operations, long id, WebhookDto webhookDto)
 {
     return(operations.PatchByIdAsync(id, webhookDto).GetAwaiter().GetResult());
 }
Example #2
0
 /// <summary>
 /// Patches a webhook
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Webhooks or Webhooks.Write.
 ///
 /// Required permissions: Webhooks.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static WebhookDto PatchById(this IWebhooks operations, long key, WebhookDto body = default(WebhookDto))
 {
     return(operations.PatchByIdAsync(key, body).GetAwaiter().GetResult());
 }