You can use the REST API content management service to export a package containing content as a .zip file.

Input

The query URL for the export command must specify the ID of the package to export.

表 1. Export Query URL Parameters

Name

Description

Type

id

The identifier of the package

Path

secureValueFormat

The format in which secure values should be sent. This parameter is optional and defaults to "BLANKOUT".

Query

Output

The output of this command is a .zip file.

Example Curl Command

$curl --insecure -s -H "Accept: application/zip" -H "Authorization: Bearer $token" https://$host/content-management-service/api/packages/54f627bb-2277-48af-9fa0-7d7366b498f3-o package.zip

Example: JSON Output

The export command returns a message that indicates whether or not the package was exported. A successful export produces a package.zip exported to the specified location. The returned message is '200 - Successes' with the Package or 404 - 'Not Found' if it does not find a package with provided ID.