06/05/2023 10:31 PM
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.
06/05/2023 11:44 PM
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