Hi Team,
I created a workflow in Identity Security Cloud using an external trigger. The workflow contains an HTTP Action where the Authentication Type is set to OAuth 2.0 - Client Credentials Grant.
My flow is:
-
Create the workflow via API.
-
Patch a newly created parameter.
-
Send a PATCH request to enable the workflow.
-
Run the workflow via API.
However, when I try to execute the workflow via API, I get an error saying that refId is missing.
I noticed that if I disable and enable the workflow once from the ISC UI, the refId is automatically generated, and the next execution works successfully.
My requirement is to perform everything via API only. I do not want to use the UI at any point.
VIA API:
“error”: “failed to retrieve Parameters for authentication type ‘oauth’: unexpected Parameter configuration”,
"method": "post",
"param_authenticationRef": "oauth",
"param_oauth": {
"mapping": {
"auth_client_id": "clientId",
"auth_client_secret": "clientSecret",
"auth_credential_location": "credentialLocation",
"auth_token_url": "tokenURL"
},
"paramID": "5d651594-941a-4349-9208-99d32b49b06a",
"paramType": "1.4"
},
After enabling via UI
"method": "post",
"param_authenticationRef": "oauth",
"param_oauth": {
"mapping": {
"auth_client_id": "clientId",
"auth_client_secret": "clientSecret",
"auth_credential_location": "credentialLocation",
"auth_token_url": "tokenURL"
},
"paramID": "5d651594-941a-4349-9208-99d32b49b06a",
"paramType": "1.4",
"refID": "d2f3f836-9e06-4a77-a207-de4c01368dd1"
},
Could someone please help me understand:
-
How can I generate or set the
refIdfor the HTTP Action via API? -
Is there a specific API endpoint or payload field required for this?
-
Is this expected behavior, or a limitation/bug in the workflow API?
Thanks in advance.