aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/webhook_listeners/lib/Controller/WebhooksController.php2
-rw-r--r--apps/webhook_listeners/openapi.json13
2 files changed, 15 insertions, 0 deletions
diff --git a/apps/webhook_listeners/lib/Controller/WebhooksController.php b/apps/webhook_listeners/lib/Controller/WebhooksController.php
index a4de0c8d342..852d0db65da 100644
--- a/apps/webhook_listeners/lib/Controller/WebhooksController.php
+++ b/apps/webhook_listeners/lib/Controller/WebhooksController.php
@@ -107,6 +107,7 @@ class WebhooksController extends OCSController {
* @param string $uri Webhook URI endpoint
* @param string $event Event class name to listen to
* @param ?array<string,mixed> $eventFilter Mongo filter to apply to the serialized data to decide if firing
+ * @param ?string $userIdFilter User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering.
* @param ?array<string,string> $headers Array of headers to send
* @param "none"|"headers"|null $authMethod Authentication method to use
* @param ?array<string,mixed> $authData Array of data for authentication
@@ -175,6 +176,7 @@ class WebhooksController extends OCSController {
* @param string $uri Webhook URI endpoint
* @param string $event Event class name to listen to
* @param ?array<string,mixed> $eventFilter Mongo filter to apply to the serialized data to decide if firing
+ * @param ?string $userIdFilter User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering.
* @param ?array<string,string> $headers Array of headers to send
* @param "none"|"headers"|null $authMethod Authentication method to use
* @param ?array<string,mixed> $authData Array of data for authentication
diff --git a/apps/webhook_listeners/openapi.json b/apps/webhook_listeners/openapi.json
index 01a9c59e6c2..b460fea0b02 100644
--- a/apps/webhook_listeners/openapi.json
+++ b/apps/webhook_listeners/openapi.json
@@ -75,6 +75,9 @@
"type": "object"
}
},
+ "userIdFilter": {
+ "type": "string"
+ },
"headers": {
"type": "object",
"additionalProperties": {
@@ -223,6 +226,11 @@
"type": "object"
}
},
+ "userIdFilter": {
+ "type": "string",
+ "nullable": true,
+ "description": "User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering."
+ },
"headers": {
"type": "object",
"nullable": true,
@@ -501,6 +509,11 @@
"type": "object"
}
},
+ "userIdFilter": {
+ "type": "string",
+ "nullable": true,
+ "description": "User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering."
+ },
"headers": {
"type": "object",
"nullable": true,