diff --git a/specification/extras/paths.json b/specification/extras/paths.json index a283838..1dbc4ae 100644 --- a/specification/extras/paths.json +++ b/specification/extras/paths.json @@ -248,5 +248,33 @@ } } } + }, + "/workspaces/{workspace}/hooks": { + "post": { + "parameters": [ + { + "in": "body", + "name": "_body", + "required": true, + "schema": { + "$ref": "#/definitions/webhook_subscription" + } + } + ] + } + }, + "/workspaces/{workspace}/hooks/{uid}": { + "put": { + "parameters": [ + { + "in": "body", + "name": "_body", + "required": true, + "schema": { + "$ref": "#/definitions/webhook_subscription" + } + } + ] + } } } diff --git a/src/plugins/register-api-endpoints/routes.json b/src/plugins/register-api-endpoints/routes.json index 56b585d..f2a41cf 100644 --- a/src/plugins/register-api-endpoints/routes.json +++ b/src/plugins/register-api-endpoints/routes.json @@ -5657,6 +5657,11 @@ "createWebhookForWorkspace": { "method": "POST", "params": { + "_body": { + "required": true, + "schema": "WebhookSubscription", + "type": "any" + }, "workspace": { "required": true, "type": "string" @@ -5874,6 +5879,11 @@ "updateWebhookForWorkspace": { "method": "PUT", "params": { + "_body": { + "required": true, + "schema": "WebhookSubscription", + "type": "any" + }, "uid": { "required": true, "type": "string"