'How to use CARA documentum search API?

I have a Scenario to automate where the Workfront tool is sending a document to CARA with some piece id. I need to search the piece id in CARA after performing login and then I need to move to the documentInbox folder. I need to search the piece id. Once it is found, I need to add a reviewer, add a comment and then mark it as compliance approved.

Can someone guide me on how I can use CARA APIs here?

Scenario:

-> Seach in cara with piece id
-> Add a comment
-> Add a reviewer
-> Go to task and mark it as approved
-> Forward it

I have the search API with me, but I don't know how to add the piece id in the request as the request body is not proper json/xml.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source