curl --location --request PUT '/webhooks/3' \
--header 'Accept: application/json' \
--header 'Accept-Language: {{lang}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated Name",
"url": "https://yourapp.com/newupdated-webhook",
"method_type": "POST",
"status": 1,
"events": [
"order.created"
],
"secret": "optional-updated-secret-min-32-chars-long"
}'{
"status": "success",
"message": "Webhook updated successfully.",
"data": {
"id": 19,
"name": "Updated Name",
"url": "https://yourapp.com/newupdated-webhook",
"method_type": "POST",
"status": 1,
"created_at": "2026-04-01 00:35:41",
"updated_at": "2026-04-02 00:28:03",
"events": [
{
"id": 62,
"event_name": "order.created"
}
]
}
}