OTCS REST API - Document Uplaod is giving 500 Internal Server error
Options
Hi I am using the below code for upload a document in content server using restapi.I am getting 500 Internal Sever error while uplaoding.
iurl5 = new URL(ConstantValues.baseUrl+"/api/v1/nodes/");
HttpURLConnection uc5 = (HttpURLConnection)iurl5.openConnection();
uc5.setRequestMethod("POST");
uc5.setRequestProperty("otcsticket",info.getAuthToken());
uc5.setRequestProperty("type","144");
uc5.setRequestProperty("parent_id","2000");
uc5.setRequestProperty("name","Test");
uc5.setDoInput(true);
uc5.setDoOutput(true);
uc5.getOutputStream().write(byteArray);
uc5.connect();
String response = uc5.getResponseMessage();
Tagged:
0
Comments
-
what does the Content Server logs / CS IDE say when you hit the issue ?
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 104 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax