# PATCH- Update Account API

**URL:** <https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697>\
**Category:** SHF Discussion and Questions\
**Tags:** apis, identity-security-cloud\
**Created:** [October 3, 2024, 9:49am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697 "2024-10-03T09:49:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 9:49am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/1 "2024-10-03T09:49:27Z")

</div>

Hi !  
I have to use [update-account | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v2024/update-account) 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-

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

```

---

<div class="post-metadata">

**Author:** ![sushantkulkarni](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sushantkulkarni/32/35213_2.png) [@sushantkulkarni](https://developer.sailpoint.com/discuss/u/sushantkulkarni)\
**Post date:** [October 3, 2024, 11:02am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/2 "2024-10-03T11:02:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 11:04am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/3 "2024-10-03T11:04:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sushantkulkarni](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sushantkulkarni/32/35213_2.png) [@sushantkulkarni](https://developer.sailpoint.com/discuss/u/sushantkulkarni)\
**Post date:** [October 3, 2024, 11:05am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/4 "2024-10-03T11:05:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 11:07am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/5 "2024-10-03T11:07:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sushantkulkarni](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sushantkulkarni/32/35213_2.png) [@sushantkulkarni](https://developer.sailpoint.com/discuss/u/sushantkulkarni)\
**Post date:** [October 3, 2024, 11:11am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/6 "2024-10-03T11:11:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 11:12am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/7 "2024-10-03T11:12:39Z")

</div>

I am already using scope:all for this.

---

<div class="post-metadata">

**Author:** ![sushantkulkarni](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sushantkulkarni/32/35213_2.png) [@sushantkulkarni](https://developer.sailpoint.com/discuss/u/sushantkulkarni)\
**Post date:** [October 3, 2024, 11:15am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/8 "2024-10-03T11:15:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 11:18am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/9 "2024-10-03T11:18:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zeel\_sinojia](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zeel_sinojia/32/13666_2.png) [@zeel\_sinojia](https://developer.sailpoint.com/discuss/u/zeel_sinojia)\
**Post date:** [October 3, 2024, 12:23pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/10 "2024-10-03T12:23:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TJ21](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tj21/32/8407_2.png) [@TJ21](https://developer.sailpoint.com/discuss/u/TJ21)\
**Post date:** [October 3, 2024, 12:47pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/11 "2024-10-03T12:47:53Z")

</div>

Deepak follow the examples on the BETA api

 ![Screenshot 2024-10-03 084658](https://global.discourse-cdn.com/sailpoint/original/3X/3/8/38a1e07e2e7a3830b723e59e09fe048d760269ff.png)

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 1:20pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/12 "2024-10-03T13:20:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TJ21](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tj21/32/8407_2.png) [@TJ21](https://developer.sailpoint.com/discuss/u/TJ21)\
**Post date:** [October 3, 2024, 1:41pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/13 "2024-10-03T13:41:45Z")

</div>

@deepakarora It should have the same response

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

```

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 1:45pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/14 "2024-10-03T13:45:04Z")

</div>

Yes. It should but not behaving same.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/6/3/6303c02d99e06e12884cf415106159f753b76f09.png)

---

<div class="post-metadata">

**Author:** ![TJ21](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tj21/32/8407_2.png) [@TJ21](https://developer.sailpoint.com/discuss/u/TJ21)\
**Post date:** [October 3, 2024, 1:47pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/15 "2024-10-03T13:47:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [October 3, 2024, 1:52pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/16 "2024-10-03T13:52:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TJ21](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tj21/32/8407_2.png) [@TJ21](https://developer.sailpoint.com/discuss/u/TJ21)\
**Post date:** [October 3, 2024, 2:01pm UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/17 "2024-10-03T14:01:07Z")

</div>

@deepakarora check your Headers

---

<div class="post-metadata">

**Author:** ![ssaripella](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@ssaripella](https://developer.sailpoint.com/discuss/u/ssaripella)\
**Post date:** [November 26, 2024, 12:36am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/18 "2024-11-26T00:36:40Z")

</div>

Hi Deepak, Is this issue resolved for you? I see the same behavior in our env.

@deepakarora

Thanks

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [November 26, 2024, 5:52am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/19 "2024-11-26T05:52:04Z")

</div>

Hi, I was getting this error in our demo tenant. But when I checked in our other tenant, this API call was working fine. I am not sure, why I am getting error in demo tenant.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 25, 2025, 5:52am UTC](https://developer.sailpoint.com/discuss/t/patch-update-account-api/83697/20 "2025-01-25T05:52:56Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
