7.2

Table Of Contents
Input
Parameter Description
createdDate The package creation date.
lastUpdated The date when the package was last updated.
version The package version identier.
tenantId The ID of the tenant associated with the package. Used to
enforce ownership.
subTenantId (Optional) The ID of the sub tenant or business group
associated with the package
id Species the unique identier for the content. This is also
used as a folder name to group similar content artifacts.
name Species the name of a given content type provided in
localized message key form.
description Species additional information describing the package.
contents Collection of references that form the contents of the
package.
Output
The command output contains property names and values based on the command input parameters.
Parameter Description
createdDate The package creation date.
lastUpdated The date when the package was last updated.
version The package version identier.
tenantId The ID of the tenant associated with the package. Used to
enforce ownership.
subTenantId (Optional) The ID of the sub tenant or business group
associated with the package
id Species the unique identier for the content. This is also
used as a folder name to group similar content artifacts.
name Species the name of a given content type provided in
localized message key form.
description Species additional information describing the package.
contents Collection of references that form the contents of the
package.
Example Curl Command
The following command creates a package named "Demo Package" with a content ID of 9b348c29-88-4fa8-
b93e-f80bc7c3e723.
$curl --insecure -s -H "Content-Type: application/json" -H "Authorization: Bearer $token"
https://$host/content-management-service/api/packages-d'{"name" : "Demo Package", "description" :
"Package for demo purposes", "contents" : [ "9b348c29-88ff-4fa8-b93e-f80bc7c3e723" ]}'
Example: JSON Output
The JSON output is a URL for the created package.
Programming Guide
344 VMware, Inc.