Hi,
I'm sending a POST request in Node.js using client.request as shown below:
However, the response status alternates between 406 if i use .json at the end and 200 if i dont use.json, but the data isn't being inserted. It works fine when using Postman.
client.request({
url: `api/v2/users/${user.id}/identities`,
type: "POST",
contentType: 'application/json',
data: JSON.stringify(data)
});