How to specify correctly header and body information

Hi,

I am using Deepl api(DeepL API) and trying to upload the document. I dont know how to specify the Content-Type and body information correctly in HTTP request. The HTTP Post request data is here. Any help?

POST /v2/document HTTP/1.0
Host: api-free.deepl.com
User-Agent: YourApp
Accept: /
Content-Length: [length]
Content-Type: multipart/form-data;boundary=“boundary”

–boundary
Content-Disposition: form-data; name=“file”; filename=“mydoc.docx”

contents of your uploaded document
–boundary
Content-Disposition: form-data; name=“auth_key”

bc95684f-e36e-e540-a9de-953ede06257a:fx
–boundary
Content-Disposition: form-data; name=“target_lang”

DE
–boundary–

Hi ,

I tried with basic setup in the api .


You can give the attachment as required and also change the authentication type as per requirement.
The activity name is HTTP request in the app integration category.

Hi!

I know about this activity and I am using Http request activity already to upload the docx file. I am facing the problem in specifying Content-Type, Body format type and Body of POST request on this activity.

I specified it like this but I am getting 400 status and response as invalid data file. I attached a docx file with my HTTP request.

HTTP Request Properties:


Body:

Attachment:

Headers:

Parameters
image

Any help in this regard?

Hi

Did this thread help us solving this

Cheers @WASEEM_KHAN

may i know how to set Content-Length: [length]??

May i know how to set Content-Length: [length]?

Did you found any solution on this ?