Webhooks
Update webhook
Update URL, events or state without changing the secret.
PATCH
/webhooks/{id}webhooks:writeRequest
idstring · pathResource identifier.mandatorynamestring · bodyName.optionalurlstring · bodyPublic HTTPS URL.optionaleventsarray · bodyEvents or *.optionalactiveboolean · bodyActivates the destination.optionalExample
curl
curl -X PATCH 'https://achadu.com/api/v1/webhooks/resource_id' \
+ -H 'Authorization: Bearer ach_live_...' \
+ -H 'Accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{
"name": "My integration",
"url": "https://example.com/product",
"events": [
"offer.created"
]
}'Answer
200Operation completed4xxError with code, message and request_id