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

receive error 412 when calling addrole API

RBKHC
New Contributor II
New Contributor II

 

Version 2020.1.2

{{url}}/ECM/api/v5/addrole

receive error 412 when calling addrole API

There is not documentation on the possible error messages when using APIs. Can you please provide error information for 412.

 

2 REPLIES 2

SB
Saviynt Employee
Saviynt Employee

One of the reason could be due to the permissions assigned to the User you are performing the call with. Can you check for the SAV role assigned to the user.


Regards,
Sahil

RBKHC
New Contributor II
New Contributor II

I figured out that I was missing the response body from Saviynt that contained more details as to what failed. When calling the API from PowerShell Invoke-RestMethod I needed to use the switch -SkipHttpErrorCheck to allow the process to see the response body.

Thanks for your response!