Partially updates an existing webhook configuration identified by webhookId.
The clientId and userEmail are resolved from the JWT token.
All body fields are treated as required for the update operation.
Request
Add the parameter Authorization
to Headers Example:Authorization: ********************
or
Body Params application/jsonRequired
{
"type": "PAYMENT",
"url": "https://example.com/webhook/payment-updated",
"descriptions": "Updated webhook for payment notifications",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}
Request Code Samples
curl --location --request PATCH '/v1/webhooks/WBH-20240101-ABC123' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "PAYMENT",
"url": "https://example.com/webhook/payment-updated",
"descriptions": "Updated webhook for payment notifications",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}'
Responses
application/json
Webhook updated successfully
{
"status": "200",
"message": "success",
"data": {
"id": 1,
"webhookId": "WBH-20240101-ABC123",
"type": "PAYMENT",
"url": "https://example.com/webhook/payment-updated",
"descriptions": "Updated webhook for payment notifications",
"createdDate": "2024-01-01T10:00:00+07:00",
"updatedDate": "2024-01-15T14:30:00+07:00",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}
}
Modified at 2026-02-19 02:47:20