cancel
Showing results for 
Search instead for 
Did you mean: 

Web API HTTP POST Request | Missing content-type boundary

SarahWind
Level 2

Hi everyone, 

I'm trying to upload two files to an API endpoint with the Web AP Services. I'm using a POST Multiple Files action, but I keep getting a Status 400 error which states:

[Failed to read the request form. Missing content-type boundary.]  


For now, the only headers I'm using are
accept
H X-UPLOAD-API-KEY
Content-Type: multipart/form-data

Can somebody explain where I have to add the boundary? And what the boundary should look like? I have received a screenshot from the API developer which states the following:

content-type: multipart/form-data; boundary=----WebKitFormBoundarytfAPDImBwMN9BExF

Thanks in advance!

1 REPLY 1

SteveBoggs
Staff
Staff
Hi Sarah, 

We have some Blue Prism-centric documentation about this in the Knowledge Base article, "How can I work with a multipart/form-data web request?". There is an overview of the expected format, along with Blue Prism implementation guidance.

If this doesn't help to resolve this issue, could you please also let us know if this works as expected outside of Blue Prism (i.e. in Postman/SOAPUI/etc)?