local json = require("json")
local body, err = json.decode(r.RequestBody)
if err then error(err) end
local message = "Webhook received, user:" .. body["data"]["user"]
local result, err = json.encode(new_payload)
if err then error(err) end
-- Set request header to application/json
r:SetRequestHeader("Content-Type", "application/json")
-- Set request method to PUT
r:SetRequestMethod("PUT")
-- Set modified request body