-
REST API - Create Document - HTTPClient
I have a auth ticket, and have set a link / URI to ContentServer. * I can get nodes * I can create folders and categories * I don't know how to upload a document. See the code below. What is needed to fix this? //Create MultiPart Form DataMultipartFormDataContent mainRequest = new MultipartFormDataContent();//Setting the…
-
Unable to obtain file content via REST API
Hello experts - I'm testing REST APIs on our CS 16.2.1 that I need for next project. Many of them work; I'm able to obtain OTCSticket and use it in header of my next call (using javascript for testing). So I'm able to get document name, description, etc. But I'm unable to get a file content; I tried both: get content and…
-
Create node from C#
Hello. Hope someone can point me in the right direction here. Using Content Server 16.2 API, trying to create a node using the following code: using (var htc = new HttpClient()) { htc.DefaultRequestHeaders.Add("OTCSTICKET", GetOTAuthHeader()); MultipartFormDataContent MFDC = new MultipartFormDataContent(); MFDC.Add(new…
-
REST API: Categories
I need to post a document to Content Server, preferably using the REST API, but I need to include category and metadata information. I see some similar posts that indicate this functionality is available in the summer time frame of this year. We are currently only version 2014-06 of CS10, fully patched, but I don't see any…
-
Create Workspace through CWS
Hello, I'm trying to create Workspaces through CWS with the DocumentManagement Client and the method CreateNode. I'm always getting the same error, no matter what I do: 'Select a valid template to create a business workspace. The template requires an associated workspace type'. How I am supposed to inform the template to…
-
How to add a document and adding the category to the content server 16.2 with one Api call?
here is my post man request.
-
REST API Only Returns - 400 Bad Request - on Errors
I am rewriting some scanner firmware to utilize the REST API. Everything works as expected, but if I "Throw an Error" the API only responds with a generic "400 Bad Request" rather than the specific errors related to the service end point. An example would be the "POST" using the Nodes endpoint (Creating a Folder). If it…
-
eDocs API request schema
Where can I find the schema for making requests with the eDocs API? For example, on the API reference page for eDocs API, the POST method for the 'documents' endpoint just shows that the required POST data is 'data'. It doesn't show what the format for that data.
-
How to add a document to Content Server 16 using REST API V2
http://dc1ecm16llint1/otcs/cs.exe/api/v2/nodes?where=((type=144) AND (parent_id=1852917) AND (file="\ServerName\Folder1\SubFolder\sample.pdf")) I'm trying to use RestAPI V2, using postman, to add a new document to Content Server 16. I keep getting generic "500 - Internal server error" and "There is a problem with the…
-
REST API Response
Is there a way to format the REST API response to be xml versus JSON in content server 16.2?