Planfix API userGroup.get: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "The function of obtaining information about a group. Request format: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="userGroup.get"> <account></account> <sid></sid> <userGroup> <id></id> </userGroup> <signature></signature> </request> </source> {| class="wikitable" style="margin-top: 1em; width:100% " !width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note |- |id ||int ||group identifier || |- |signature ||string(32) |...")
 
 
Line 53: Line 53:
== Go To ==
== Go To ==
*[[Planfix API:Managing user groups]]
*[[Planfix API:Managing user groups]]
*[[Error codes]]
*[[Error codes XML API v1|Error codes]]
*[[List of functions]]
*[[List of functions]]

Latest revision as of 14:55, 5 March 2024

The function of obtaining information about a group. Request format:

<?xml version="1.0" encoding="UTF-8"?>
<request method="userGroup.get">
  <account></account>
  <sid></sid>
  <userGroup>
    <id></id>
  </userGroup>
  <signature></signature>
</request>
Name Type Value Note
id int group identifier
signature string(32) signature

Response:

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
  <userGroup>
    <id></id>
    <name></name>
    <userCount></userCount>
  </userGroup>
</response>
Name Type Value Note
id int group identifier
name string group name
userCount int number of users in the group

Otherwise, a response with an error will be returned:

<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
  <code></code>
</response>


Go To