Skip to main content

 Services

Web services from /about to /webhooks

groupfolder forpath

/members/{member}/groups/{group}/groupfolders/forpath [GET]

Description

This services returns the group folder information including sharing information for a given path.

The {group} in the service URL must be the owner group.

Parameters

NameDescriptionRequiredTypeDefault
pathThe full group folder path beginning with / (/* suffix is added automatically) e.g. /ps/acme/specs/sharedyespath

Permission

Requires guest or higher, unless group is accessible to public.

Response

If successful, the group folder is returned as a <groupfolder> element.

The hidden attribute/property is specified to indicate how many groups are not listed when there are groups that the group folder is shared to but that the user does not have permission to view.

<groupfolder id="[groupuri id]"
             scheme="[scheme]"
             host="[host]"
             port="[port]"
             path="[path]"
             external="[true|false]"
             public="[true|false]"
             [sharing="[private|shared]"]>
  <sharing hidden="2">
    <share editable="true" 
           shareedits="true" 
           sharexrefs="true" 
           addcomments="true" 
           owner="true">
      <group name="my-group1" .../>
    </share>
    <share editable="true" 
           shareedits="true" 
           sharexrefs="true" 
           addcomments="false">
      <group name="my-group2" .../>
    </share>
    <share editable="false" 
           addcomments="true">
      <group name="my-group3" .../>
    </share>
  </sharing>
</groupfolder>

Or in JSON

{ 
  "id": number,
  "scheme": string,
  "host": string,
  "port": number,
  "path": string,
  "external": boolean,
  "public": boolean,
  "sharing": {
    "status": string,
    "share":[
      {
        "owner": boolean,
        "editable": boolean,
        "addcomments": boolean,
        "shareedits": boolean,
        "sharexrefs": boolean,
        "group": group
      }
    ]
  }
}

Up to PageSeeder v6.0005, the external JSON property was incorrectly written as a string "external":"false" instead of "external":false. The sharing JSON property was also declared twice.

Error Handling

CodeCause / Description
0x1404If the group folder is not found
0x1405If the group folder is not in group
0x140BInvalid path
0x6401There is no default group folder for the group
Created on , last edited on