upload_end
Finish the publication upload.
Parameters
- action
- upload_end
- cancel
- (optional) true or false; default is false. When an upload_resource function has returned with an error condition, call upload_end with cancel=true to delete content in the holding area and unlock the publication.
- type
- (optional) set to "topic" for topic upload, defaults to "upload"
- lang
- A language version of a publication.
- pub
- A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.
Example URL
http://<host>:<port>/<context>/web/pub.xql?action=upload_end&cancel=<value>&type=<value>&lang=<value>&pub=<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 pubs" permission, and the function will throw a permission exception if the permission is not available.