Updates an Endpoint. You can change the url of your endpoint or the list of webhook_subscriptions to which you are subscribed. See the Webhooks Reference page for available events.
Always send a complete list of events to which you want to subscribe. Sending a PUT request for an existing endpoint with an empty list of webhook_subscriptions will unsubscribe all events.
If you want to unsubscribe from a specific event, send a list of webhook_subscriptions without the specific event key.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
The Advanced Billing id for the endpoint that should be updated
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Used to Create or Update Endpoint.
application/json
application/json
curl -X PUT \ --url 'https://subdomain.chargify.com/endpoints/1.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{ "endpoint": { "url": "https://your.site/webhooks/1/json.", "webhook_subscriptions": [ "payment_failure", "payment_success", "refund_failure", "invoice_pending" ] }}'Used to Create or Update Endpoint.