Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST API response code

Rajesh_IAM
Regular Contributor
Regular Contributor

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"
]
}

 

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