update
Sitemap update.
Description
Update the sitemap file used by Web Crawlers. All documents can be updated by passing an empty publication id.
Parameters
- action
- update
- lang
- A language version of a publication. If this parameter is empty, update all languages within the 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. If this parameter is empty, update all publications.
Example URL
http://<host>:<port>/<context>/web/sitemap.xql?action=update&lang=<value>&pub=<value>
Successful Result
If successful, the requested publications are updated in the the sitemap. 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. In the case of an error, this function returns a standard API result element with a non-zero statusCode (such as, <result status='FAIL' statusCode='200' message='Localized Failure Message' messageKey='message.key'/>). Refer to API Error Code Reference.
Failed Result
Accessing this API feature requires the "Use application" permission, and the function will throw a permission exception if the permission is not available.