Webhooks
Update Webhook Subscription
Request
PATCH /webhooks/uuid
Parameters
Name | Type | Description |
---|
uuid | string | Required -- Uuid of the webhook |
url | string | Required -- URL where the webhook subscription should send the POST request when the event occurs |
Request Payload Example
{
"url": "https://report.example.com/status_up"
}
Request Curl Example
curl -X PATCH \
-H "Content-Type: application/json" \
-H "Authorization: Bearer d3d6763224e8f54ee5aeb08202b7eb101d97081876819cb48833d9f892185917" \
-d \
'{
"url":"https://report.example.com/status_up"
}' \
"https://api.statsignal.dev/v1/webhooks/b7335e08-b376-42a4-a04f-5c871a1c75ac"
Response Example
Status: 200 Updated
{
"uuid": "b7335e08-b376-42a4-a04f-5c871a1c75ac",
"topic": "monitors/status_change",
"url": "https://report.example.com/status_up",
"createdAt": "2021-05-09T04:38:42.09448Z",
"updatedAt": "2021-05-09T04:47:28.583677294Z"
}