Documentation Center

save_profile

Saves a packaging or distribution profile.

Parameters

action
save_profile
xml
The XML of the profile to save.
type
Either "packages" to administer normal packages, or "masters" to administer Master Server content delivery groups. Defaults to "packages".
key
The unique key assigned to this package or Master Server content delivery group. If creating a new object, no key should be provided.

Example URL

http://<host>:<port>/<context>/web/package.xql?action=save_profile&xml=<value>&type=<value>&key=<value>

Successful Result

This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure.

Failed Result

Accessing this API feature requires the "Manage application" permission, and the function will throw a permission exception if the permission is not available.