webhooks
public
patch/v1/webhooks/endpoints/{id}
Request
- Base URLhttps://api.polar.sh
- URLhttps://api.polar.sh/v1/webhooks/endpoints/{id}
- Auth
- OpenID Connect (/.well-known/openid-configuration, scopes: webhooks:write)
- or HTTP bearer
- or HTTP bearer
Path parameters
idstring uuid4 required
The webhook endpoint ID.
Request body
Example request
{
"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0"
}Response
Webhook endpoint updated.
Example response
{
"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0",
"secret": "whsec_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK"
}Changes
- warning
added the new
discount.createdenum value to the/response property for the response status - warning
added the new
discount.deletedenum value to the/response property for the response status - warning
added the new
discount.updatedenum value to the/response property for the response status - warning
added the new
subscription.cycledenum value to the/response property for the response status - info
added the new
discount.createdenum value to the request property// - info
added the new
discount.deletedenum value to the request property// - info
added the new
discount.updatedenum value to the request property// - info
added the new
subscription.cycledenum value to the request property//
- warning