Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
upload file from REST giving 401 Authorization required error — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

upload file from REST giving 401 Authorization required error

Received Response
18
Views
4
Comments
edited Jan 17, 2019 4:57AM in Content Management 4 comments

Summary

upload file from REST giving 401 Authorization required error, even though I gave the credentials

Content

Hi All

I have a file in my laptop and want to upload to CEC. I found below REST api for upload files

https://hostname:443/documents/api/1.2/files/data

Below details are given in Postman

Header:

Content-Type: multipart/form-data; boundary=---1234567890
Authorization: Basic dmVua2F0YS52LnRob3RhQG9yYWXXXXXXXXXXXXFtNWc3NHY (Came automatically based on credentials given in Authorization tab)

Body:

-----1234567890
Content-Disposition: form-data; name="parameters"
Content-Type: application/json

{
"parentID":"FEDFC390F992A939D1F7A282F6C3FF17C1177A968060"
}
-----1234567890
Content-Disposition: form-data; name="primaryFile"; filename="D:\Oracle\DigitalBSS\Content and Experience\TestDoc1.txt"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!