Difference between Request Formats?

I probably missed this in the docs, but what's the difference between a Request Format of JSON and Custom Body? AFAICT, the only difference, when I look at the Custom Template, is that the data I'm sending is labeled as either "json" or "body".

Webhook json must form valid JSON after the mustache templates are expanded.

Webhook body can output arbitrary data for POST, PUT, and APPEND.

There's also a historical difference in that json previously had to be valid JSON in the template, before resolving mustache, which required the use of body in order to create anything other than a JSON string value. While the editor still flags the invalid JSON, you can save and use the template now, assuming the template expands to valid JSON.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.