Create or Update Webhook Rule – Management API – MediaKind

Create or Update Webhook Rule

put https://app.mk.io/api/v1/projects/:project_name/webhook/rules/:rule_name

Create or Update Webhook Rule.

RBAC Capability Required: webhooks.config.create or webhooks.config.update

Authentication

Authorization Bearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

Request

This endpoint expects an object.

Indicates whether the webhook is enabled.

Response

200

Webhook Rule was updated

201

Webhook Rule was created

Errors

400 Bad Request

401 Unauthorized

all have similar structures as mentioned in 400 with appropriate codes and messages.