Change the target URL for a webhook subscription
POST https://www.prayerletters.com/api/v1/hooks/{hook_id}

It is not currently possible to change the event for a given webhook subscription. If you need to do this, create a new subscription and delete the old one.

target
The URL that should be notified when the event occurs. The URL may contain query parameters. These will be overwritten if the webhook uses the same parameters.

Expected Response

HTTP/1.1 200 OK
Content-Type: application/json
{ "event": "contact.address_update.v1", "href": "https://www.prayerletters.com.com/api/v1/hooks/h-21w-qe71", "id": "h-21w-qe71", "last_triggered": null, "target": "https://integrated.app/incoming/prayerletters.com" }

Error Responses

400 hooks.invalid_target
The target must be an HTTP or HTTPS URL.