POST /api/system/apps/{app}/systemhooks
As of Version | product version 2022 Summer |
---|---|
Request Method | POST |
Response Format | JSON |
Required Permission | available if listed in |
Description | Updates the app-specific system hook configuration for the The content of the app-specific systemHookConfiguration.json configuration file is replaced by the configuration specified in the request body. Its structure is validated and has to match the structure described here. Especially, the type of each defined AMQP hook and webhook has to be valid. The configured system hooks are available only for the specified app. If the specified The changes are applied immediately after a successful update of the configuration. |
Request Headers | Content-Type: [application/json] |
Request Example |
{ "systemhooks": { "amqp": [], "webhooks": [ { "enable": true, "predicate": "spel:T(java.util.List).of(300).contains(options['action'])", "type": "dms.request.objects.upsert.storage-before", "url": "http://examplewebhook/api/dms/request/objects/update/metadata", "useDiscovery": true } ] } } |
Response Example |
|