Update delivery-status webhook
PUT/api/partner-gateway/v1/webhooks/delivery-status
Replaces the callback URL of the existing delivery-status webhook with a new URL. Use this when your server endpoint changes and you want to redirect notifications without any downtime. The update takes effect immediately: subsequent delivery-status events will be sent to the new URL. The new callback URL is validated exactly as on creation: HTTPS on port 443 or 8443, no credentials, no fragment, and a host resolving to a publicly reachable address. This endpoint does not create a webhook if none exists. If no webhook is currently configured, a 404 is returned; use POST /webhooks/delivery-status to create one first. Returns 400 if the request body is invalid: missing or malformed callbackUrl, a non-HTTPS scheme, a port other than 443 or 8443, or a host that is not publicly reachable. Returns 401 if the API key is missing or invalid. Returns 500 if an internal error occurs.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Webhook updated successfully
Invalid request body, or a callbackUrl that is not a publicly reachable HTTPS URL
Unauthorized
No webhook configured
Internal server error