export group resources
/groups/{group}/resources/export [GET]
API Support | Available since | Last updated | Output |
---|---|---|---|
4.8006 | 6.0000 | json, xml |
Description
Export all the files in the project.
Exports the files for a kit.
All files are exported in a ZIP which can be imported into another PageSeeder project or server.
The ZIP file contains all the resources (except the history of changes and other hidden files) in a non-project specific manner so that they can be imported easily in any project.
The filename is usually: "ps[project]-[isodate].zip"
Parameters
Name | Description | Required | Type | Default |
---|---|---|---|---|
perspective | The name of an existing perspective to export. | no | string | standard |
Permission
This service requires administrator.
Response
When the group is valid, the XML is designed to indicate the HTTP client what:
<export project="[owner directory]" perspective="[perspective]" datetime="[datetime]" file="[filename]"/>
If group is invalid, returns:
<error id="0101"> <request>/ps/service/groups/error/resources/export </request> <message>Access forbidden</message> </error>
The default value of the perspective is standard
.
If perspective = test, for example, the return XML is:
<export project="original" perspective="test" datetime="2017-02-23T09:57:36+11:00" file="ps-original.test-2017-02-23.zip"/>
Error Handling
Code | Cause / Description |
---|---|
0x0101 | Access forbidden When I put a group invalid |