Skip to main content

Set a webhook endpoint's outbound transformation

PUT 

/webhooks/endpoints/:id/transformation

Sets the endpoint's transformation. The enabled flag is always applied. Include the function code to set or replace it; omit the code to leave the current function unchanged (for example, send only enabled=false to turn an existing transformation off). Security: the code is JavaScript executed on each outbound delivery to rewrite the payload before it is sent — treat it as privileged configuration and only set code you trust.

Request​

Responses​

Transformation updated successfully