Parameterized body POST request

I had this working before! and I can’t figure out how to make it work again

I have a post API that accepts a simple body JSON request
{
“documentId”: “{documentId}”,
}
I’d like the value of documentId to be a parameter I can pass. Parameters in Pipe seems to be for query param and not body request variables. Correct me if I am wrong!

The parameter will replace also inside the body exactly how you did it.

Is that not working for you?

Just create a parameter call it whatever you want and make sure the slug is: documentId

That will replace that value inside the JSON request as well. You can see an example of this by installing the Airtable pipe.

This is strange.
So, when I send this hardcoded non-parameterized request to my API, Pipe works:
{
“documentId”: “5”,
“fields”: 0
}

And when I replace documentId with a parameter
{
“documentId”: “{documentId}”,
“fields”: 0
}
It doesn’t work!!! I wish Pipe can return the raw error log

I created a new Pipe and and did the same thing as above and it works now!

Great!

So you know you can create a response and choose Raw instead of Json and save that back to any field like any other response. You’ll be able to see the exact response.