Planfix API user.updateGroupMembership: Difference between revisions
From Planfix
(Created page with "Change the user's affiliation with the group. Can be called by a user with administrator rights. Request format: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="user.updateGroupMembership "> <account></account> <sid></sid> <user> <id></id> <addUserGroup> <id></id> <id></id> <!-- ... --> </addUserGroup> <delUserGroup> <id></id> <id></id> <!-- ... --> </delUserGroup> </user> <sig...") |
No edit summary |
||
Line 23: | Line 23: | ||
</source> | </source> | ||
{| class="wikitable" style="margin-top: 1em; width:100% " | {| class="wikitable" style="margin-top: 1em; width:100% " | ||
!width="150"| | !width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note | ||
|- | |- | ||
|user.id ||int || user identifier|| | |user.id ||int || user identifier|| | ||
Line 48: | Line 48: | ||
</source> | </source> | ||
{| class="wikitable" style="margin-top: 1em; width:100% " | {| class="wikitable" style="margin-top: 1em; width:100% " | ||
!width="150"| | !width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note | ||
|- | |- | ||
|user.id ||int || user identifier|| | |user.id ||int || user identifier|| |
Revision as of 10:29, 5 March 2024
Change the user's affiliation with the group. Can be called by a user with administrator rights. Request format:
<?xml version="1.0" encoding="UTF-8"?>
<request method="user.updateGroupMembership ">
<account></account>
<sid></sid>
<user>
<id></id>
<addUserGroup>
<id></id>
<id></id>
<!-- ... -->
</addUserGroup>
<delUserGroup>
<id></id>
<id></id>
<!-- ... -->
</delUserGroup>
</user>
<signature></signature>
</request>
Name | Type | Value | Note |
---|---|---|---|
user.id | int | user identifier | |
user.addUserGroup | list of groups the user is joining | ||
user.addUserGroup.id | int | group identifier | |
user.delUserGroup | list of groups the user is leaving | ||
user.delUserGroup.id | int | group identifier |
Response, if the request is successful:
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<user>
<id></id>
</user>
</response>
Name | Type | Value | Note |
---|---|---|---|
user.id | int | user identifier |
Otherwise, a response with an error will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>