Skip to main content

Update Webhook Configuration

Overview​

Updates an existing webhook configuration. The key field is immutable and cannot be changed after creation — use id to identify the configuration to update. All other fields can be modified.

Command Details​

  • Command: UpdateWebHookConfigCommand
  • Type: Command (write operation)

API Endpoint​

POST /api/bpm/cmd

Request Structure​

FieldTypeRequiredDescription
$typestringYesMust be UpdateWebHookConfigCommand
idlongYesThe ID of the webhook configuration to update
descriptionstringYesUpdated description
isEnabledboolYesWhether the configuration is enabled
pathstringYesThe URL path for this webhook
actionstringYesHTTP method (e.g., POST, GET)
executionTypeintYes0=ExecuteNativeCommand, 1=ExecuteCommandChain, 2=ExecuteCode, 3=StartProcess
executionCodestringConditionalInline script (required if executionType is 2)
processDefinitionIdlongConditionalBPMN process ID (required if executionType is 3)
commandNamestringConditionalBPM command name (required if executionType is 0)
allowableIPsstringNoComma-separated list of allowed IP addresses or CIDR ranges

Try It Out​

POST/api/bpm/cmdUpdateWebHookConfigCommand
Request Body

Response Structure​

Success:

{
"success": true,
"data": {
"id": 201,
"key": "payment-notification",
"description": "Updated payment notification handler",
"isEnabled": true,
"path": "/webhooks/nibss/payment-v2",
"action": "POST",
"executionType": 0,
"commandName": "ProcessNibssPaymentNotificationCommand",
"updatedAt": "2026-03-09T15:00:00Z"
},
"message": "Webhook configuration updated successfully"
}

Error:

{
"success": false,
"data": null,
"message": "Update failed",
"errors": [
"Configuration not found"
]
}