Skip to main content

batch-or-create-or-edit-or-delete-Offices-Teams-Users

Method that allows you to bulk add, delete, edit offices, teams and users all in a single call

Parameters

No additional parameters

Example

Data posted

https://ws.idibu.com/ws/rest/v1/offices-teams-users?hash=[your_hash]
<idibu>
<user><!-- creates new user, format identical to users/new ws -->
<profile>
<team-id>42</team-id><!-- required -->
</profile>
</user>
<user id="13"><!-- updates user data -->
</user>
<user delete="true" id="14"><!-- deletes user and his login, if exists -->

<team><!-- creates new team, format identical to teams/new ws -->
<name>Test Team</name><!-- required -->
<office-id>7</office-id><!-- required -->
</team>
<team id="1"><!-- updates team data -->
</team>
<team delete="true" id="2"><!-- deletes team, and moves its users to unassigned -->

<office><!-- creates new office, format identical to offices/new ws -->
<name>Test Office</name><!-- required -->
</office>
<office id="7"><!-- updates office data -->
</office>
<office delete="true" id="8"><!-- deletes office and it&#39;s teams -->
</office></team></user></idibu>