groupfolder
API Support | Available since | Last updated | Output |
---|---|---|---|
5.8900 | 5.9400 | xml, json |
Description
This services returns the group folder information including sharing information for a given group folder ID.
The {group}
in the service URL must be the owner group.
Parameters
Name | Description | Required | Type | Default value |
---|---|---|---|---|
sharing | Whether to include full sharing information | no | boolean | true |
sharing
The sharing
parameter determines whether the sharing information is returned. It includes the list of groups that the group folder is shared to and how they are being shared.
Set this parameter to false
if you only want to load the group folder attributes.
Permission
Requires guest or higher, unless group is accessible to public.
Response
If successful, the group folder is returned as a <groupfolder>
element.
The sharing element/property is always specified unless the sharing
parameter is set to false
.
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]" editable="[true|false]" public="[true|false]" [sharing="[private|shared]"] [<sharing hidden="2"> <share editable="true" shareedits="true" sharexrefs="true" addcomments="true" default="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 |
---|---|
0x1401 | If the URL is invalid |
0x1404 | If the group folder is not found |
0x1405 | If the group folder is not in group |