groupfolder forpath
/members/{member}/groups/{group}/groupfolders/forpath [GET]
API Support | Available since | Last updated | Output |
---|---|---|---|
5.9400 | 5.9400 | xml, json |
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
Name | Description | Required | Type | Default |
---|---|---|---|---|
path | The full group folder path beginning with / (/* suffix is added automatically) e.g. /ps/acme/specs/shared | yes | path |
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
Code | Cause / Description |
---|---|
0x1404 | If the group folder is not found |
0x1405 | If the group folder is not in group |
0x140B | Invalid path |
0x6401 | There is no default group folder for the group |