Single quotes not accepting in payload api request

Hi N8N team, I am trying to hit the backend api from my custom node below is my payload
body = { instance_id: ‘68’, username: ‘superadmin’,org_id: ‘3’} all the values are coming from different apis in the payload with single quotes and when I hit the api using this payload its not working.
But when I use with the double quotes it was working
body = { instance_id: “68”, username: “superadmin”,org_id: “3”}.
can you tell me how to covert single quotes to double quotes or any other solution available to solve this problem.

Hi @praveen, it’s a bit hard to say exactly what’s happening here without additional context.

Which request exactly are you sending to your API and how exactly are you setting the value for body? Which error are you seeing?

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