Skip to main content
Contributor ⭐️
Mar 1, 2022 7:48 PM UTC
Solved

How to unset accountId for a user instance using the REST API?

I have tried setting the accountId field in the user instance to null and empty string using the PUT request. I’m trying to disassociate a user from an account. But the user instance retains the previous accountId. How do I set it to null using the REST API?

link_black
Gainsight Employee ⭐️⭐️
Mar 1, 2022 9:14 PM UTC

Hi @naresh-olive , thanks for posting to PX Community.

 

You cannot update the accountId attribute field with null or “”, so you will need to pass at least a single space character as shown in the screenshot below:

 

Happy PX-ing!

-- Link

2 replies

link_black
Gainsight Employee ⭐️⭐️
Mar 1, 2022 9:14 PM UTC

Hi @naresh-olive , thanks for posting to PX Community.

 

You cannot update the accountId attribute field with null or “”, so you will need to pass at least a single space character as shown in the screenshot below:

 

Happy PX-ing!

Translate
-- Link
anirbandutta
Expert ⭐️
Mar 2, 2022 5:02 AM UTC

Great to see the quick exchanges and thanks @naresh-olive for marking the Answer as correct, definitely helps curate the best content on the community.

Translate
It's an opportunity for engagement