Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Unable to get ECM/api/testConnection working

AliW
New Contributor
New Contributor

Hi all,

I'm trying make API calls to test if our connections are working or not.

When I navigate to a connection in the UI and select Save & Test Connection, it returns Connection was Successful.

However when I try to make an API call using testConnection, I don't get the same results:

AliW_0-1710160458508.png

The API user has ROLE_ADMIN assigned to it and I've tried doing this for multiple connections and each time it returns Connection Failed

Am I doing something wrong?

Thanks

3 REPLIES 3

PremMahadikar
Regular Contributor III
Regular Contributor III

Hi @AliW ,

1. Can you try passing the body in raw -> json format

PremMahadikar_0-1710169043162.png

2. Can you share the logs once hit the call in postman

 

Thanks @PremMahadikar ,

I just compared your URL to mine and can see that it is ECM/api/v5.testConnection. Adjusting to this has worked for me.

Thank you!

Correct URL.

rushikeshvartak_0-1710211072507.png

{{URL}}/ECM/{{path}}/testConnection


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.