Webhook
Aggiorna webhook
Aggiorna URL, eventi o stato senza modificare il segreto.
PATCH
/webhooks/{id}webhooks:writeRichiesta
idstring · pathIdentificatore della risorsa.obbligatorionamestring · bodyNome.facoltativourlstring · bodyURL HTTPS pubblico.facoltativoeventsarray · bodyEventi o *.facoltativoactiveboolean · bodyAttiva la destinazione.facoltativoEsempio
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"
]
}'Rispondi
200Operazione completata4xxErrore con codice, messaggio e request_id