PATCH- Update Account API

Hi !
I have to use update-account | SailPoint Developer Community this API for one of the use case for reassigning the account. This API is throwing 404 but when I see in backend, then the account is getting reassigned to another identity. ( This 404 error is breaking my workflow.) Let me know your thoughts on this.

RequestBody-

[
  {
    "op": "replace",
    "path": "/identityId",
    "value":"************************************"
  }
]

Hi @deepakarora - Does this happen on v2024 API that you’ve linked or also on v3 or Beta APIs?

I have checked with v3 as well then also I got the same error.

How do you get the new identityId that you use in the API body, is it in one of the workflow variables?

Yeah. I am stroring into one variable then passing in the API call. If you leave the workflow for a sec, getting same error through postman as well.

Can you try re-generating the OAuth credentials, setting the scope to “all” and see if you still get the same error? If you don’t get the error, reduce the scope back to what you’ll require for the workflow.

I am already using scope:all for this.

Do you get the same 404 even if you hardcode the new identityId (just to test the API)? If so there might be something else going wrong. It’s strange how the reassignment goes through but you get a 404.

1 Like

Initially when I got error in workflow then first, I tested from postman only then I noticed this strange behavior.

Hi @deepakarora,

I tried the operation and found that if you enter incorrect IDENTITY ID in request body, you get 400 Bad Request. Only in case of incorrect Account ID in the params you get 404.

I am pretty sure you checked this part but still if you could have a look at the account ID in the params and make sure that is correct just to be double sure.

You could check this directly in postman as well.

Deepak follow the examples on the BETA api

1 Like

Hi Tom!
There is no issue in replacing the attribute value even using v3 and v2024. I am replacing the identityId and reassigning the account to the identityId.

@deepakarora It should have the same response

"op": "replace",
"path": "/identityId",
"value": "2c9180857725c14301772a93bb77242d"

Yes. It should but not behaving same.

@deepakarora it cant find the ID you want to replace it with

Hi! Everything is correct. Even it’s reassigning the account to the identityId in the backend (strange behaviour) but API is throwing 404 so it’s breaking my workflow.

@deepakarora check your Headers