cURL
curl --request PATCH \ --url https://api.centralcart.com.br/v1/app/webhooks/{id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "url": "<string>", "scopes": [ "<string>" ] } '
{ "id": 1, "store_id": 1, "name": "Webhook Atualizado", "url": "https://meusite.com/webhook-v2", "scopes": ["ORDER_APPROVED", "ORDER_REJECTED", "ORDER_REFUNDED"], "secret": "a1b2c3d4e5f6...", "created_at": "2026-02-20T10:00:00.000-03:00", "updated_at": "2026-02-20T12:00:00.000-03:00" }
Atualiza um webhook existente. Todos os campos são opcionais.