POST /api/system/apps/{app}/systemhooks/validate
As of Version | product version 2022 Summer |
---|---|
Request Method | POST |
Response Format | JSON |
Required Permission | available if listed in |
Description | Validates the app-specific system hook configuration for the The content of the app-specific systemHookConfiguration.json configuration file to be validated is specified in the JSON 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. To apply a valid app-specific system hook configuration, use the endpoint POST /api/system/apps/{app}/systemhooks. |
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 |
|