Hi Team,
This is on DEVELOPMENT environment of OTCS23.3.
We are trying to upload document with category from tibco application using REST API.
But returning the error message highlighted in yellow.
(Using postman, I am able to upload and create category as well.)
Step 1: I invoked Authentication API (http://OTDEV/OTCSadmin/llisapi.dll/api/v1/auth), got the session ID.
Step 2: Invoked second API (http://OTDEV/OTCSadmin/llisapi.dll/api/v2/nodes) to upload the documents along with category and attributes. In header we used the session ID returned from Step 1.
The second API returned the below error output.
<?xml version = "1.0" encoding = "UTF-8"?>
<ns0:RESTOutput xmlns:ns0 = "">
<StatusCode>500</StatusCode>
<msg>{"error":"Could not process object, invalid action 'create'","request_id":"78c67f0c-44d2-4994-8bad-091945f44e13"}</msg>
</ns0:RESTOutput>
Below is the Request to Second API: This exactly same as how we are passing from your postman collection.
<?xml version = "1.0" encoding = "UTF-8"?>
<ns0:ActivityInput xmlns:ns0 = "">
<ns0:Parameters>
<Header>
<Content-Type>application/x-www-form-urlencoded</Content-Type>
<otcsticket>ce67559a8f6d7b65e189b45b76b14b29f232e015dfe81c41d23351ac1433bc06fb021fc91a6216ef26dd6a219685c30792925374c505739fb76ef24febf5aaed</otcsticket>
</Header>
<Body>
<Text>
<type>application/x-www-form-urlencoded</type>
<body>
{
"name": "REF_02242023_1284.pdf",
"parent_id": "9681941",
"type": "144",
"roles": {
"categories": {
"149088_14": "1968",
"149088_15": "133 Excise MF FET January 31 2023",
"149088_16": "INTERNAL REVENUE SERVICE - GA"
}
}
}
</body>
<file>\\hoaadv3333\operations\Kofax\Export\00000504\1.pdf</file>
</Text>
</Body>
</ns0:Parameters>
</ns0:ActivityInput>
Regards,
Vishnuhttp://www.tibco.com/namespaces/tnt/plugins/jsonhttp://www.tibco.com/namespaces/tnt/plugins/json