Planfix API: projectGroup.getList

From Planfix
Revision as of 12:52, 2 August 2023 by Aliona (talk | contribs) (Created page with "{{#seo: |title=Planfix API: projectGroup.getList |titlemode=append |keywords=Planfix, Planfix API, API, projectGroup.getList, getList project |description=Planfix API: projectGroup.getList }} Function for getting a list of project groups Request format: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="projectGroup.getList"> <account></account> <sid></sid> <signature></signature> </request> </source> {| class="wikitable" style="margin-top:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Function for getting a list of project groups Request format:

<?xml version="1.0" encoding="UTF-8"?>
<request method="projectGroup.getList">
  <account></account>
  <sid></sid>
  <signature></signature>
</request>
Name Type Value Notes
signature string(32) signature


Response:

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
  <projectGroups totalCount="totalCount">
    <projectGroup>
      <id></id>
      <name></name>
    </projectGroup>
    <!-- ... -->
  </projectGroups>
</response>
Name Type Value Notes
projectGroups root element, contains a list of project groups
projectGroups totalCount int number of project groups
projectGroup root element that describes a project group in the list
id int project group identifier
name string project group name

An empty response will not generate an error. If there are no project groups in the resulting selection, the response will look as follows:

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
  <projectGroups totalCount="0"></projectGroups>
</response>


Otherwise, an error response will be returned:

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


Go To