We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

REST API response code

Rajesh_IAM
New Contributor III
New Contributor III

Hi Team,

We are integration new REST based application with Saviynt. New account Creation API is generation common 201 response code for both successful and failure cases with different message in response body.

For success case: Response code 201 with message  "ProcessExecuteStatusCode: CompletedSuccessfully" in response body.

For Failure case: Responsode 201 with message "ProcessexecuteStatisCode: CompletedWithMessages" in response body.

Rajesh_IAM_0-1698046093465.png

 

Rajesh_IAM_1-1698046125416.png

How can we implement this new account use case with same 201 response code in Saviynt.?

Is there ant way to implement this new account JSON with these API response message as condition instead of 201 code.?

 

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @Rajesh_IAM,

You can add below snippet in the json to handle such scenario  anything apart from "CompletedSuccessfully" will go to failure.

"successResponses": {
"ProcessExecuteStatusCode": [
"CompletedSuccessfully"
]
}