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
- 200
- 400
- 401
- 403
- 404
Transformation updated successfully
Invalid input data
Unauthorized
Forbidden
Webhook endpoint not found