Question

1
Replies
99
Views
Bharani devi K (BharanideviK)
CTS

CTS
IN
BharanideviK Member since 2014 1 post
CTS
Posted: March 15, 2021
Last activity: March 18, 2021
Posted: 15 Mar 2021 8:40 EDT
Last activity: 18 Mar 2021 13:44 EDT
Solved

How to send file as Form data to Connect REST API

I am trying to send a file to service as Multipart Form Data as content type to Connect Rest POST method. I tried with the solution given in pdn to use pyRequestAttachmentPage. But I am facing 400 error from the service. I want to know how to check if the file is being passed on to the service and how the configuration has to be in the REST rule for it.

***Edited by Moderator Marissa to update Platform Capability tags****
Pega Platform 7.1.7 Data Integration