Solved

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

  • 1 March 2022
  • 2 replies
  • 30 views

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?

icon

Best answer by link_black 1 March 2022, 22:14

View original

2 replies

Userlevel 6
Badge +2

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!

Userlevel 7
Badge +2

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.

Reply