a week ago
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
Answered! Go to Answer.
Monday
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.
Monday
Monday
If we have a free access to this Api give me the link and i will try on my side @arjunraj
Monday
@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
Monday
@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 :
Monday
Monday
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
Monday
@arjunraj show me collection FieldMetaData
Monday
Monday
sorry, let me correct it