post https://localhost:8443/fineract-provider/api/v1/hooks
The following parameters can be passed for the creation of a hook :-
name - string - Required. The name of the template that is being called. (See /hooks/template for the list of valid hook names.)
isActive - boolean - Determines whether the hook is actually triggered.
events - array - Determines what events the hook is triggered for.
config - hash - Required. Key/value pairs to provide settings for this hook. These settings vary between the templates.
templateId - Optional. The UGD template ID associated with the same entity (client or loan).