Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

REST Account Import status code

shreyascn
New Contributor III
New Contributor III

Hello,

Can someone please share an example for ImportAccountEnt JSON where only if the status code is 200 then the job should show success else if the application throws a 403 then the Job should show fail. 

Please note the authentication is succesfull however sometimes the GET Account API call fails from the application, in such instances we want to show that Data import failed. 

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @shreyascn 

You can mention the apiRateLimitConfig in the connection json, if it fails the automatically job will fail,

Example :- 

{
  "authentications": {
    "acctAuth": {
      "authType": "Basic",
      "url": "<URL>",
      "httpMethod": "POST",
      "httpParams": {},
      "httpHeaders": {},
      "httpContentType": "text/html",
      "properties": {
        "userName":"<<USERNAME>>/token",
        "password":"<<PASSWORD>>"
      },
      "expiryError": "ExpiredAuthenticationToken",
      "authError": [
        "InvalidAuthenticationToken",
        "AuthenticationFailed"
      ],
      "timeOutError": "Read timed out",
      "testname": "<test URL>",
      "errorPath": "error.code",
      "maxRefreshTryCount": 5,
      "tokenResponsePath": "access_token",
      "tokenType": "Basic",
      "accessToken": "Basic <<TOKEN>>",
      "apiRateLimitConfig": {"retryAfterCalls": 100,"retryWaitSeconds": 60}
    }
  }
}

 Thanks,

For Ref: https://docs.saviyntcloud.com/bundle/REST-v55x/page/Content/Developers-Handbook.htm 

 
If you find the above response useful, Kindly Mark it as "Accept As Solution".