Want to send body as a string without quotes

I want to do a POST with a body as string without quotes
Check this screenshot of call done with postman and n8n

Have you an idea how to do that ?

Hey @wassim,

Try changing the content type to text/plain, If you use application/json it will expect json content which is typically wrapped in ""

1 Like

Thanks! Unfortunately application accepts only application/json . Is there another way ?

I can’t think of a way around it, As just that value isn’t valid json though can you share a more complete example of the json you will actually be sending and we can work from there?

Yes, you are right that it is not a well formed json but API is defined like that. Trying it on the generic endpoint :

curl --location --request POST 'https://wassim.free.beeceptor.com' \
--header 'Content-Type: application/json' \
--data-raw 'Demo'

Hey @wassim,

Out of interest what is the API?

To get this working I would use the v2 HTTP Request node, This will allow you to send the data as required. Whenever you need to make a call like that you will need to copy / paste the node.

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