Source PATCH not working

Hi Experts,

we are making the following API call in the AfterCreate Powershell rule to store the latest generated sAMAccountName on a custom attribute in the Source JSON:

[
{
“path”: “/connectorAttributes/custom_loginCounter”,
“op”: “replace”,
“value”: “M90638”
}
]

This was working for the last year, and without making any changes whatsoever, the source PATCH was not working anymore. That means, I could see in the logs that the Source was getting updated, but shortly thereafter getting reverted with the previous value, say for example M90639.

Hi @tamalika01

Have you tried testing this separately ?
Check if the PATCH is happening correctly through postman (if this is working, issue is not with API) . What is the version of this API ? Try testing with other versions.

what is the response code/msg after your patch call?

For updating Source configuration, I’d strongly recommend using the SailPoint VS Code extension instead of REST.