Pre-Event Webhooks

222
0
07-09-2020 09:19 AM
Status: Open
JohnMDye
Occasional Contributor III

Add additional webhook triggers that are triggered just before an event occurs, allowing Administrator and developers to intercept events occurring on some or all items, to perform validation.

Items:

Trigger eventURI example

Before an item is added to the portal

/items/beforeAdd

Any item is deleted

/items/beforeDelete

Any item is updated

/items/beforeUpdate

Any item is moved or it's ownership is changed

/items/beforeMove

Any item is published

/items/beforePublish

Any item is shared

/items/beforeShare

Any item is unshared

/items/beforeUnshare

The ownership of any item has been reassigned

/items/beforeReassign

A specific item is deleted

/items/<itemID>/beforeDelete

A specific item's properties are updated

/items/<itemID>/beforeUpdate

A specific item's ownership is changed or the item is moved

/items/<itemID>/beforeMove

A specific item is published

/items/<itemID>/beforePublish

A specific item is shared

/items/<itemID>/beforeShare

A specific item is unshared

/items/<itemID>/beforeUnshare

The ownership of a specific item has been reassigned

/items/<itemID>/beforeReassign

Obviously, these "before" webhooks should be applied to all existing and future webhooks, including Group, User and Role webhooks. Having pre-event webhooks would be useful for administrators that work in highly regulated industries where we may need to "sniff" out a an item for sensitive information and possibly strip that information, deny the publication or tokenizing that information.

Tags (1)