# How can you include form-data in an HTTPConnetor PATCH request

**URL:** <https://forum.cloverdx.com/t/how-can-you-include-form-data-in-an-httpconnetor-patch-request/1887>\
**Category:** CloverDX Platform\
**Created:** [August 3, 2017, 12:00am UTC](https://forum.cloverdx.com/t/how-can-you-include-form-data-in-an-httpconnetor-patch-request/1887 "2017-08-03T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmasonus.ibm.com](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mrmasonus.ibm.com](https://forum.cloverdx.com/u/mrmasonus.ibm.com)\
**Post date:** [August 3, 2017, 12:00am UTC](https://forum.cloverdx.com/t/how-can-you-include-form-data-in-an-httpconnetor-patch-request/1887/1 "2017-08-03T00:00:00Z")

</div>

I’m trying to convert the below curl to an HTTPConnector PATH request, but I’m having trouble identifying which field the form-data needs to be included in.

curl --request PATCH \  
--url [https://plus.dnb.com/v1/monitoring/regi … n/duns/add](https://plus.dnb.com/v1/monitoring/registrations/myregistration/duns/add) \  
--header ‘accept: application/json’ \  
--header ‘authorization: alphanumerictoken’ \  
--header ‘content-type: multipart/form-data; boundary=—011000010111000001101001’ \  
--form duns=duns.txt

---

<div class="post-metadata">

**Author:** ![Vladimir\_Barton](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.cloverdx.com/vladimir_barton/32/167_2.png) [@Vladimir\_Barton](https://forum.cloverdx.com/u/Vladimir_Barton)\
**Post date:** [August 15, 2017, 10:49am UTC](https://forum.cloverdx.com/t/how-can-you-include-form-data-in-an-httpconnetor-patch-request/1887/2 "2017-08-15T10:49:53Z")

</div>

From reviewing the curl request, I presume that you intend to update a certain data resource with the duns.txt content while the Content-Disposition header is expected to be form-data. Is that correct? If so, this can be achieved with the following HTTPConnector setup:

- URL: [https://plus.dnb.com/v1/monitoring/regi … n/duns/add](https://plus.dnb.com/v1/monitoring/registrations/myregistration/duns/add)

- Request method: PATCH

- Add input fields as parameters: true

- Send parameters in: Query

- Multipart entities: duns (note: using this property requires you to utilize the HTTPConnector input port 0 where you would want to push the path to the duns.txt)

- Input mapping: you would want to map the $in.0.duns to the duns\_EntityContent in order to pass the duns.txt content

- Raw HTTP Headers: accept: application/json \ authorization: alphanumerictoken \ content-type: multipart/form-data; boundary=—011000010111000001101001

If I misunderstood your question, please provide more details concerning what exactly you are trying to achieve. Thank you.

Best regards,
