I want to connect our ERP with Documizers/Docuflow using their API. In short: the first step is to create a workspace, the second is filling that workspace with data.
I use Postman to test step 1:
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/f3faf63e-8af4-4d04-ac5c-a167f989e09d.png)
The ID that returns I can use in step 2.
How do I translate this Postman-POST to the HTTP-connector POST?
No matter what I try, Indicium is returning error 400: Bad request.
My return-parameter http_result_id is filled with:
{"":{"Failed to read the request form. Invalid header line: "]}
in stead of an ID.
This is how I activate the HTTP-connector:
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/1672a99f-0455-43c8-8ab9-d112b0858195.png)
And this is the content of http_body:
set @http_body=
--ItemID
'
--abcde12345
Content-Disposition: form-data; name="ProcessName"
Koffieadvies
--abcde12345
Content-Disposition: form-data; name="File.Name"
pdw
--abcde12345
Content-Disposition: form-data; name="File.Extension"
.txt
--abcde12345
Content-Disposition: form-data; name="File.Content"; filename="123.txt"
123
abcde12345--
'
The API needs a file (with is an empty one).
I also tried just sending the processname, but it still returns Bad request .
Does it make a difference if I use the HTTP-connector in a systemflow or in a procesflow, triggered by a task ?
Anyone has an idea ?