Best Answer

Create user in different branch through API

  • 3 October 2022
  • 4 replies

Userlevel 2

How to create user in particular branch through API

POST /manage/v1/user

The setting 

"orgchart": {
"__branch_id__": 8

in payload does not work. The user always is created in root branch. The only way to change branch is from UI.


Best answer by John 10 October 2022, 22:43

View original

4 replies

Userlevel 5
Badge +2

Here is an example snippet for creating a user, while also assigning them to a branch location at the same time, using the manage/v1/user endpoint. The formatting should follow similar to this:


This explanation from the API-Browser description of the Org Chart field shows this:


Userlevel 7
Badge +4

Get very comfortable with the queries for the branch structure :)

I keep a cheat sheet of these for my easy reference, but have to update when new branches get created (use a webhook to be notified and given the info for the new branch)

Userlevel 2

@John , It’s really trick in payload. I did not see the description there. Thank you!

Userlevel 5
Badge +2

You are welcome @liza2022! Thanks for being patient while you awaited a reply (and thanks for marking Best Answer)!