Update a webhook

 

Updated: May 26, 2016

The Update a webhook task updates a webhook.

The related Windows PowerShell cmdlet for this task is Set-AzureRmAutomationWebhook.

To specify the request, replace {subscription-id} with your subscription ID, {resource-group-name} with the name of your resource group, {automation-account-name} with the name of the automation account, and {webhook-name} with the name of the webhook.

Method

Request URI

PATCH

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/webhooks/{webhook-name}?api-version=2015-10-31

URI parameter

Description

api-version

Required. Valid values include 2015-10-31

The following code shows an example of the request body.

To be provided.

Element name

Required

Type

Description

IsEnabled

Yes

Boolean

Specifies whether the webhook is enabled.

Name

Yes

String

Specifies a name of the webhook that this task modifies.

Parameters

Yes

IDictionary

Specifies a dictionary of key/value pairs. The keys are the runbook parameter names. The values are the runbook parameter values. When the runbook starts in response to a webhook, these parameters are passed to the runbook.

The following code shows an example of the response body.

To be provided.

201

For information about common error codes, see Service Management Status and Error Codes

Show: