# Multipart/Mixed with Node-RED

**URL:** <https://discourse.nodered.org/t/multipart-mixed-with-node-red/6487>\
**Category:** General\
**Created:** [7 January 2019 06:46 UTC](https://discourse.nodered.org/t/multipart-mixed-with-node-red/6487 "2019-01-07T06:46:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ram1505](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ram1505/32/958_2.png) [@ram1505](https://discourse.nodered.org/u/ram1505)\
**Post date:** [7 January 2019 06:46 UTC](https://discourse.nodered.org/t/multipart-mixed-with-node-red/6487/1 "2019-01-07T06:46:55Z")

</div>

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--
```

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [7 January 2019 15:15 UTC](https://discourse.nodered.org/t/multipart-mixed-with-node-red/6487/2 "2019-01-07T15:15:28Z")

</div>

Hi Ram,  
Is this perhaps something you could achieve using [node-red-contrib-multipart-encoder](https://github.com/bartbutenaers/node-red-contrib-multipart-stream-encoder) node??  
Bart
