Webhooks
Atualizar webhook
Atualiza URL, eventos ou estado sem trocar o segredo.
PATCH
/webhooks/{id}webhooks:writeSolicitação
idstring · pathIdentificador do recurso.obrigatórionamestring · bodyNome.opcionalurlstring · bodyURL HTTPS pública.opcionaleventsarray · bodyEventos ou *.opcionalactiveboolean · bodyAtiva o destino.opcionalExemplo
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"
]
}'Resposta
200Operação concluída4xxErro com code, message e request_id