Hi,
I'm trying to send a multipart/mixed payload using node-red. I'm not sure how to achieve multipart using the function or templates. Here is my body of my POST request that needs to be sent as a multipart. Can someone please help?
--f0Ve5iPP2ySppIcDSR6Bak
Content-Type: multipart/related;boundary=penFL6sBQHJJUN3HA4ftqC
--penFL6sBQHJJUN3HA4ftqC
Content-Type: application/vnd.test.meta+json
{
"type": "item",
"version": "1.0",
"payload": {
"type": "standardTimeSeries",
"version": "1.0",
"details": {
"configurationId": "CustomAgentConfig"
}
}
}
--penFL6sBQHJJUN3HA4ftqC
Content-Type: application/json
[
{
"timestamp": "2019-01-07T13:46:03.780Z",
"values": [
{
"dataPointId": "Humidity01",
"value": "55",
"qualityCode": "0"
},
{
"dataPointId": "Temperature01",
"value": "27",
"qualityCode": "0"
}
]
},
{
"timestamp": "2019-01-07T13:55:03.780Z",
"values": [
{
"dataPointId": "Humidity01",
"value": "55",
"qualityCode": "0"
},
{
"dataPointId": "Temperature01",
"value": "27",
"qualityCode": "0"
}
]
}
]
--penFL6sBQHJJUN3HA4ftqC--
--f0Ve5iPP2ySppIcDSR6Bak--