Reactivate Webhook
curl --request PATCH \
--url https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivateimport requests
url = "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Webhooks
Reactivate Webhook
Re-enable an auto-disabled webhook subscription.
PATCH
/
v1
/
webhooks
/
{webhook_id}
/
reactivate
Reactivate Webhook
curl --request PATCH \
--url https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivateimport requests
url = "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/webhooks/{webhook_id}/reactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}PATCH /v1/webhooks/{webhook_id}/reactivate
Re-enable a webhook subscription that was automatically disabled after failing continuously for 24 hours. Resets failure_count to 0 and sets active back to true.
Use this after fixing the issue that caused delivery failures (e.g., your endpoint was down, returned 5xx, or timed out).
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
webhook_id | integer | path | Yes | The webhook subscription ID |
api_key | string | query | Yes | Your API key |
Example
curl -X PATCH "https://api.autosnap.com/v1/webhooks/42/reactivate?api_key=YOUR_API_KEY"
Response
{
"success": true,
"webhook": {
"id": 42,
"event_type": "vehicle.created",
"url": "https://your-server.com/webhooks/autosnap",
"active": true,
"failure_count": 0,
"max_failures": 10
},
"message": "Webhook re-enabled. Failure count reset to 0."
}
Bulk Reactivate
To re-enable all disabled webhooks at once:curl -X PATCH "https://api.autosnap.com/v1/webhooks/reactivate-all?api_key=YOUR_API_KEY"
{
"success": true,
"reactivated": 3,
"webhooks": [
{"id": 42, "event_type": "vehicle.created", "url": "https://..."},
{"id": 43, "event_type": "import.complete", "url": "https://..."},
{"id": 44, "event_type": "vehicle.removed", "url": "https://..."}
]
}
Errors
| Status | Description |
|---|---|
| 404 | Webhook not found or not owned by this client |