upload file from REST giving 401 Authorization required error
Summary
upload file from REST giving 401 Authorization required error, even though I gave the credentialsContent
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"