Update webhook
PUT https://www.digicert.com/services/v2/webhook/{{webhook_id}}
Use this endpoint to update a CertCentral webhook.
Note
When you change the endpoint for a webhook, you must verify the endpoint before it can receive webhook events. After changing the endpoint, complete a verification challenge and activate the webhook.
Example requests and responses
Path parameters
Name | Opt/Req | Type | Description |
---|---|---|---|
webhook_id | required | number | ID of the webhook to update. |
Request parameters
Name | Opt/Req | Type | Description |
---|---|---|---|
endpoint | required | string | Endpoint URL where your webhook listener is hosted. Must begin with https://. Learn more: Webhook endpoint requirements |
secret | optional | string | Secret key value. Must be at least 32 characters. To add or change a secret key, provide a new If a If no |
events | optional | array of strings | List of event types the webhook is subscribed to. To change the webhook Allowed values: See Webhook events. |
webhook_settings | optional | object | Optional settings for customizing certificate issued, validation expired, and revalidation notice events. |
.. instant_issue_webhook_notification | optional | array of integers | Array of values that determine when you receive notifications for
|
.. instant_issue_webhook_notification | optional | string | If |
.. webhook_send_certificate_chain | optional | string | If Learn more: Customize certificate issued events |
.. webhook_send_instant_issued_certificate_chain | optional | string | If Learn more: Customize certificate issued events |
Error cases
Status | Code | Description |
---|---|---|
400 | webhook_invalid_endpoint | The provided endpoint is not valid. Make sure the endpoint begins with https:// and try again. |
400 | webhook_configured_already | A webhook already exists in the CertCentral account. To change the endpoint URL where you listen for webhook events, use the Update webhook endpoint API. |
400 | webhook_endpoint_error | The provided endpoint is not responding or accepting requests. Make sure your webhook listener is configured correctly and try again. For more information, see Webhook endpoint requirements. |