Planfix API user.updateGroupMembership
From Planfix
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>
Название | Тип | Значение | Примечание |
---|---|---|---|
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>