admin.appserverAddNamespace( config as element(configuration), appserver-id as (Number|String), namespaces as element(gr.namespace)[] ) as element(configuration)
Add one or more namespaces to an App Server configuration, which will predefine the namespace(s) for all requests evaluated against the App Server.
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
let admin = require("/MarkLogic/admin.xqy"); let config = admin.getConfiguration() admin.appserverAddNamespace(config, admin.appserverGetId(config,[], "Docs"), fn.head(xdmp.unquote('<namespace xmlns="http://marklogic.com/xdmp/group">\ <prefix>myprefix</prefix>\ <namespace-uri>http://myuri/forthisprefix</namespace-uri>\ </namespace>')).root)