Smartsheet.Api.Internal.WebhookResourcesImpl.UpdateWebhook C# (CSharp) Method

UpdateWebhook() public method

Updates the Webhook specified in the URL.

The request body is limited to the name, events, callbackUrl, enabled and version attributes.

It mirrors To the following Smartsheet REST API method: PUT /webhooks/{webhookId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public UpdateWebhook ( Webhook webhook ) : Webhook
webhook Smartsheet.Api.Models.Webhook the webhook To update
return Smartsheet.Api.Models.Webhook
        public virtual Webhook UpdateWebhook(Webhook webhook)
        {
            return this.UpdateResource("webhooks/" + webhook.Id, typeof(Webhook), webhook);
        }