Customer Portal

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

Comments 1

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    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

    • 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,

Please sign in to leave a comment.