cancel
Showing results for 
Search instead for 
Did you mean: 

How to set HTTP Request Multipart

arjunraj
Level 4

Hi Everyone,

I am trying to upload a pdf file using HTTP Request Multipart and I have tried putting the variables in both Headers and FieldMetadata collection separately but I'm getting the 400 error every time.

Can anyone please help me on how I can set it up?

Thanks

arjunraj_0-1739902639250.png

 

28 REPLIES 28

@Mohamad_747 

arjunraj_0-1740385152479.png

When trying like this, I'm getting 400 error code with this message - {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-c38b9db1c1e21f668f30b9b7cb7f7b4d-c0678246df622918-00","errors":{"Urn":["The Urn field is required."],"AuthId":["The AuthId field is required."]}}

But both the fields mentioned above in the error message are already there in my Headers collection.

1000082683.jpg

 for me you just need Content type and accept in your headers collection 

@arjunraj 

 

If we have a free access to this Api give me the link and i will try on my side @arjunraj 

@Mohamad_747    Requirement is to upload a pdf file into the location

Address URL - https://pwdevwsg.cmsenergy.com/ConsumersEnergyPWWebAPI/api/FileUploadUrn

Urn (Upload Location) - pw://pwdev.ce.corp.com:PW_DEV_DIST/Documents/P{ddc1faa7-6062-4ddf-9c2f-e5f1c47d2d32}/

AuthId - PWRPA

 

@arjunraj  i was not able to go on this website https://pwdevwsg.cmsenergy.com/ConsumersEnergyPWWebAPI/api/FileUploadUrn maybe i need access. BTW try this please and let me know : 

Mohamad_747_0-1740400867826.png

 

 

@arjunraj 

Mohamad_747_1-1740400937154.png

 

@Mohamad_747 

Getting an Internal error - Internal : Collection fields are defined but cannot be matched to the incoming collection - The collection definition does not contain the field AuthId

@arjunraj  show me collection FieldMetaData

arjunraj_0-1740402467067.png

 

sorry, let me correct it