API call PUT JSON content array instead of object
Hi all,
I am creating a service which calls an external API using the Put JSON content loader function. I am having a problem with the content part of the params in the function where Thingworx expects me to send a JSON object but the API expects to receive an array of objects.
What I want to do:
var params = {
headers: {headers_here},
url: url_here
//Thingworx expects content to be wrapped in {} but I need it to be []
content: [{object: here}, {object: here}, {object: here}]
};
I don't get any errors on Thingworx but it doesn't change anything on the external API side. It works when sending through Postman so I suspect Thingworx is doing something behind the scenes to change the format of the data.
Any help would be brilliant

