cancel
Showing results for 
Search instead for 
Did you mean: 

Facing Content-Type Error while requesting through API

AmanpreetSingh_
Level 2
I am trying to utilize an API where it changes the color of an image. While requesting the output i m facing an error 400-Bad Request. I think mostly it is due to Content-Type which is passed in Header, While the same API when i called through postman it worked. There the content-type was multipart/form-data; boundary=<calculated when request is sent> .But when I'm passing the same content-type in Blue Prism it is giving  400-Bad Request error.
Can some help me with this.


Thanks 


------------------------------
Amanpreet Singh Bagga
------------------------------
2 REPLIES 2

@AmanpreetSingh_The latest version of Utility - HTTP has action for handling multipart requests. Have you tried that?​ In this the Content-Type is automatically set based on the type of file that you send to the API call

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

EVIPUTI
MVP
You can skip content type here . Its automatically set using the VBO . Is it still giving the error after that ?

------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------ Vipul Tiwari Senior Process Simplification Developer Amazon ------------------------------