Update a webhook
PATCH
v2/webhooks/{webhookId}?accountId={accountId}Request
Use this request to update an existing webhook. Set theenabled field to true to make it available or false to make it unavailable.
If you have a user-level API key, you need to specify an accountId to use this request.
If you have a product-level API key, you can choose to update this across all accounts by omitting the accountId query parameter.
Path parameters
The ID of the webhook that you want to update.Allowable values: An existing
webhookId (≤ 36 characters)Query parameters
The account ID to filter the response with. This is required if you have a user-level API key.Allowable values: An existing
accountId (≤ 36 characters)Request body schema
When provided, we use this to generate a hash-based message authentication code (HMAC) using the SHA-256 algorithm. We Base64 encode this signature. Every event notification you receive for this webhook will include an
x-em-signature header, if a shared secret has been provided. You can use this to verify the integrity and authenticity of the message.Allowable values: ≤ 36 charactersWhether or not the webhook should be enabled.Allowable values:
true, falseThe URL of your webhook endpoint.Allowable values: ≤ 512 characters
The authorisation header content for the webhook.Allowable values: ≤ 512 characters
Response
If your request is successful, you’ll receive a200 response.