Hi DougS. With the code that you provided, we figured out that when the webhook is sent to our endpoint, initial if condition and the second line to get the request body is working, but this statement in your code <#assign requestBodyObj = utils.json.fromJson(requestBody) /> doesn't seem to be working and after putting the check for if the body has_content we got to know that in the POST request something is coming to our endpoint but when I'm trying to get it in the restadmin call, nothing seems to set in my metadata where I'm trying to set the request body or any value in the object which comes in the body. I read in this article https://developer.khoros.com/khoroscaredevdocs/docs/working-with-webhooks that requestBody: The entire body of the request, read as a UTF8-encoded string and based on this when I'm getting the request body in my variable I also tried putting ?('utf-8') but that also didn't help. Is there something that I'm missing? Below is my endpoint code - <#attempt>
<#assign alpha = http.request.body?trim?('utf-8') />
<#if alpha?? && alpha?has_content && alpha?is_string >
<#assign alpha = alpha?eval />
<#assign updateProfile = restadmin('/users/sso_id/id/settings/name/profile.cert_info/set?value=L1 ${alpha.id}') />
<#elseif alpha?? && alpha?has_content && alpha?is_hash >
<#assign updateProfile = restadmin('/users/sso_id/id/settings/name/profile.cert_info/set?value=L2') />
<#else>
<#assign updateProfile = restadmin('/users/sso_id/id/settings/name/profile.cert_info/set?value=L3') />
</#if>
<#recover>
<#assign updateProfile = restadmin('/users/sso_id/id/settings/name/profile.cert_info/set?value=LEVEL4') />
</#attempt> Also for an example, in the webhook documentation from where we are calling our endpoint, something like this is what we are supposed to get in the request body - {
"id": "628fcaa9-cfd3-4a9b-aa62-9973ac938ad6",
"organization_id": "a0d325d9-d8cb-466f-b515-c767949f7e9a",
"event_type": "badge.created",
"occurred_at": "2014-04-01T14:41:00Z"
}