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

createrequest API error ' Invalid Request TypeNo Signature ... ' in Postman

DonovanPark
New Contributor II
New Contributor II

DonovanPark_0-1724404076121.png

I fails 'Request to Add Entitlement' with error '

Invalid Request TypeNo signature of method: org.codehaus.groovy.grails.web.json.JSONArray.split() is applicable
for argument types: (java.lang.String) values: [=]
Possible solutions: split(groovy.lang.Closure), split(groovy.lang.Closure), wait(), sort(), tail(), toList()' in Postman.
 
What should I setup the Postman(Version 11.8.1) ?
 
The other calls API are normal like the following screen captures.

DonovanPark_1-1724404122615.png

DonovanPark_2-1724404194916.png

 

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Use latest API package https://documenter.getpostman.com/view/36611902/2sA3s6DpEt 

Refer Saviynt API Documentation

https://docs.saviyntcloud.com/bundle/API-Reference-Guide/page/Content/API-References.htm


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

DonovanPark_0-1724719040100.png

DonovanPark_1-1724719055555.png

 

 

Same Error

<error>Invalid Request TypeNo signature of method: org.codehaus.groovy.grails.web.json.JSONArray.split() is applicable
for argument types: (java.lang.String) values: [=]
Possible solutions: split(groovy.lang.Closure), split(groovy.lang.Closure), wait(), sort(), tail(), toList()</error>

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

DonovanPark
New Contributor II
New Contributor II

I resolved it.

As you advice, I installed latest version of API collection.

I changed path 'api' -> 'api/v5', not 'api/4'. 'api/4' is not worked.

And I changed Auth Type of API Collection 'Bearer Token' -> 'Inherit auth from parent'

DonovanPark_0-1724741166244.png

Thank you.

 

 

Please share curl command


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

DonovanPark
New Contributor II
New Contributor II

I said this is resolved now.

 

i've attached it for your reference. Maybe I think two case is same cURL.

This is success case.

 

curl --location 'https://XXXXXXX.saviyntcloud.com/ECM/api/v5/createrequest' \
--header 'Authorization: Bearer eyJXXXXXXXXXXXXXXXXXXXE' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=D583XXXXXXXXXX59; CCSRF-TOKEN=d9xxxxxxxxxxxc38; INGRESSCOOKIE=1724716878.212.54.959125|0f4091fceac04271d9e9e5a60a3d3e8f; access_token=eyJXXXXXXXXXXXXXXXX38wE; token_type=Bearer; user_name=XXXXXXXX' \
--data '{
"requesttype":"ADD",
"username":"XXXXXXXXX",
"endpoint":"Saviynt4Saviynt",
"securitysystem":"Saviynt4Saviynt",
"accountname":"XXXXXXXXX",
"comments":"Please approve for Operation job of Saviynt",
"requestor":"XXXXXXXXX",
"createaccountifnotexists":"true",
"entitlement":[
{"entitlementtype":"SAVRole","entitlementvalue":"ROLE_ADMIN"}
],
"checksod":"true"
}'

 

 

This is failure case.

 

 

curl --location 'https://XXXXXXX.saviyntcloud.com/ECM/api/createrequest' \
--header 'Authorization: Bearer eyJhbGcXXXXXXXXXX9t958P8' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=56C29XXXXXXXXXXB7AC; CCSRF-TOKEN=4d78XXXXXXXXXX8c; INGRESSCOOKIE=1724716878.212.54.959125|0f4091fceac04271d9e9e5a60a3d3e8f; access_token=eyJhbXXXXXXXXXXKG38wE; token_type=Bearer; user_name=XXXXXXXXXX' \
--data '{
"requesttype":"ADD",
"username":"XXXXXXXXXX",
"endpoint":"Saviynt4Saviynt",
"securitysystem":"Saviynt4Saviynt",
"accountname":"XXXXXXXXXX",
"comments":"Please approve for Operation job of Saviynt",
"requestor":"XXXXXXXXXX",
"createaccountifnotexists":"true",
"entitlement":[
	{"entitlementtype":"SAVRole","entitlementvalue":"ROLE_ADMIN"}
],
"checksod":"true"
}'

 

failure case response

 

<error>Invalid Request TypeNo signature of method: org.codehaus.groovy.grails.web.json.JSONArray.split() is applicable
    for argument types: (java.lang.String) values: [=]
    Possible solutions: split(groovy.lang.Closure), split(groovy.lang.Closure), wait(), sort(), tail(), toList()</error>

 

 

Path variable was wrong in this case 

refer below post to setup environment instead of setting url individually 

https://forums.saviynt.com/t5/identity-governance/postman-saviynt-rest-api/m-p/113174


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.