API, SDK, REST and Web Services
Topics included: REST, Web Services, LiveReports, IDE Development, Smart View SDK, LAPI, Search API
-
Adds a new version on the node.
How to build the payload to add a version to a node. I am following the Content Server 21.1 REST API documentation and it responds with an error bad request
-
Define mime type in API call?
We have an automated process using the API that creates a folder structure and uploads PDFs to Content Server. Unfortunately, this proicess does not define the mime type so it's set as "application/octet-stream", which means that these documents are excluded from renditioning, since our rendition rule is set for PDFs and…
-
REST API - Upload a document to add a new version
Does Rest API support the function to upload a document to exiting item as a new version? What's the correct structure to make the call? Thanks.
-
CreateDocument VIA RestAPI - Getting bad request.
This is a method I wrote with c# that uses the post request to create a new document on CS : public async Task<string> CreateDocumentAsync(string fileName) { var values = new Dictionary<string, string> { { "type", "144" }, { "parent_id", "2000" }, { "name", fileName }, { "file", @"C:\Users\blabla\Documents\New Text…
-
Connecting a third party system using OTCS REST API
We have to connect the OTCS with a web application called Document Locator using the OTCS REST API. Requirements are, 1. Adding a new folder/document. 2. Updating the metadata. 3. Creating a workflow in OTCS and call that from Document Locator. Can someone help me how to do that? Is there any documentation that I can…
-
OTCS RestAPI: how to authentication a user which is in an Async Partition with SAML2.0?
Hi guys, When I access OTCS, SSO happens with SAML2.0. So far so good. Problem: When I try to use the OTCS RestApi (api/v1/auth) I always get "invalid username/password specified". I tried all the combinations playing around with the account domain, but can't find a way to make it work. Note: The request works fine if I…
-
set attributes when initiate workflow using RestAPI
I am calling this endpoint to initiate a workflow /api/v2/processes and set the body={"definition":{"workflow_id":30568}} I want to pass 2 attributes called "Name" and "Email" that I should take this attributes in the start step how I can do this ? I tried to set the body as {"definition":{"workflow_id":30568},…
-
initiate workflow rest api 22.1
Hi, Is there an example where they show how to consume the API rest of starting a workflow process?
-
Change Document Create Date With Rest API
Hi, I'm trying to change document's Create Date value with the api/v2/nodes/{id}/systemattributes PUT request. Here is the documentation : I try to set it to 2020-01-01 and this is the response that I get : It seems that it only returns the info and not even changing the create_date field. What am I doing wrong? is it even…
-
CORS issue when trying to authenticate
Hi, i got an error when im trying to authenticate using otcs/cs.exe/api/v1/auth with POST method, my origin is from localhost if that matters. So how to resolve it is there any configuration that i need to follow?
-
Create a node with Categories and Classifications in one call? Roles do not seem to be accepted!
Hi all, I am new and experimenting with Opentexts API. We have a task of moving multiple files from one destination folder to another. In terms of the file we would like to add categorie(s), Classifications and also apply advanced versioning. What I am trying is to just create a file at the moment, while adding categories…
-
Opentext Webreport Trigger functionality
Is it possible to get the user/performer who initiated the trigger even. Could you please help me which tag should be used.
-
Does Create document in /v2/nodes API support multipart/form-data?
Hi, I am having trouble uploading files with the Content Server 22.2 REST API. https://developer.opentext.com/ce/products/extendedecm/apis/contentserver222restapi POST /v2/nodes Create document required fields: type, parent_id, name, (file or upload_key) defaults: type = 144 Please tell me about the above. Is the…
-
Got error when trying api/v2/nodes/{id}/nodes?fields=properties{name,id}
When I tried to use "api/v2/nodes/{id}/nodes?fields=properties{volume_id, name, description, type_name}" to filter columns returned, I got error below: java.lang.IllegalArgumentException: Illegal character in query at index 98:…
-
Category audit
Could you please help me to know which webreport tag is used to get information about category audit.
-
Physical Objects - List children of a box with a WR
Hello, is there a way to list the children of a physical item container through a WebReport? Thanks. Chris.
-
Is there an option to search for bulk documents in the system?
Hi everyone, there are documents in the Opentext system that I need to move publicly. However, they are all located elsewhere and the number of documents I need to carry is quite high. However, I have the DATAID (nickname) information of all of them. Is there a function where I can search or combine all of these by…
-
Email ID of users inside group
I have difficulty with webreport in getting email ID of users present inside a group and below tag dosnt work as expected. Could you please advise. selected group using "parameter tag" and used below tag. [LL_REPTAG_&inputlabel3 USERINFO:MEMBERS:MAILADDRESS SETVAR:add /]
-
Concatenating (1) to a document's name if it already exists in the target folder
Hi! I'm trying to figure out a way to automatically add (1), (2), etc… to a document's name when adding a document to ContentServer using the REST API. Ex: If "name.pdf" already exists, change the name to "name (1).pdf" or something similar I'm currently recursively calling the /validation/nodes/names/ route to check for…
-
Is there a REST equivalent of WS Impersonate User
Hi, I'm reviewing the REST API to help a client convert their application to use REST. One big gaping hole is that there doesn't seem to be any way to impersonate a user. Currently, they have a web based application where the user authenticates elsewhere, and a service account proxies all requests to Content Server via the…