sita_ram
(Sita Ram K)
April 5, 2024, 1:47pm
1
Use case:
I have a web service connector. I want to make an POST authentication call and retireve the token from cookie value.
I want to use Web Services After Operation Rule . I have written the source code, validated and created the rule.
Now, to assign this rule to the source, I have to make a PATCH call:
PATCH
/v3/sources/{id}
[
{
“op”: “replace”,
“path”: “/connectorAttributes/connectionParameters/[*]/afterRule”,
“value”: “Example Rule”
}
]
This is the response I see when I make the above call:
{
“detailCode”: “400.1 Bad request content”,
“trackingId”: “id”,
“messages”: [
{
“locale”: “und”,
“localeOrigin”: “REQUEST”,
“text”: “The request was syntactically correct but its content is semantically invalid.”
},
{
“locale”: “en-US”,
“localeOrigin”: “DEFAULT”,
“text”: “The request was syntactically correct but its content is semantically invalid.”
}
],
“causes”:
}
Please suggest if I am missing anything?
Thank you.
Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
kjakubiak
(Kamil Jakubiak)
April 5, 2024, 2:00pm
2
I believe you do it a bit wrong - you should use this api method
Here you can find more about connector rules
And here is direct link to pasted document
1 Like
sita_ram
(Sita Ram K)
April 5, 2024, 2:13pm
3
@kjakubiak Thanks for the input Kamil.
I followed this documentation, so it said “replace”: Connector Executed Rules | SailPoint Developer Community
Question:
From your mesage above, the value: [
“Example Rule 1”]
Should we use the rule name? or Rule ID?
Thank you
ipobeidi
(Ivan Obeidi)
April 5, 2024, 2:23pm
4
@sita_ram , Have you tried using the Yannick Vscode extension?
You can simple wirte the attribute hit CTRL+S and save the connector. it you do the patch for you.
1 Like
sita_ram
(Sita Ram K)
April 5, 2024, 3:15pm
5
Thanks for your input @ipobeidi
Could you please provide an example of the attribute? or point me to any documentation.
I have VS Code extension, but not sure what attribute I have to change.
Kamil Jakubiak:
@kjakubiak this method is applicable when you are adding these rules to AD or Azure sources
1 Like
sita_ram
(Sita Ram K)
April 8, 2024, 2:19am
9
Thank you @iamnithesh . I will try this and update if I am successful.
sita_ram
(Sita Ram K)
April 8, 2024, 2:20am
10
Thank you @KevinHarrington , this is helpful.
sita_ram
(Sita Ram K)
April 9, 2024, 1:25am
11
I am able to add the afterRule to the Source connectorAttribute.
How can I use this token I retrieved using the afterRule in different HTTP operations?
When we get any reponse in the body, we can use $application.sessionId$.
In my case, how can I use the token?
@KevinHarrington , @iamnithesh , @ipobeidi , @colin_mckibben Please advise
system
(system)
Closed
June 8, 2024, 1:25am
12
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.