<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/temporal.collectionSetOptions.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>temporal.collectionSetOptions</api:function-name><api:suggest>temporal.collectionsetoptions</api:suggest><api:suggest>temporal</api:suggest><api:suggest>collectionsetoptions</api:suggest><api:function-link mode="xquery" fullname="temporal:collection-set-options">/apidoc/8.0/temporal:collection-set-options.xml</api:function-link><api:function mode="javascript" name="collectionSetOptions" lib="temporal" category="Temporal" hidden="false" bucket="MarkLogic Built-In Functions" prefix="temporal" namespace="http://marklogic.com/xdmp/temporal" fullname="temporal.collectionSetOptions"><api:summary>
  This function sets the options on the temporal collection.
  </api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
    The name of the temporal collection.
    </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="options" type="xs:string*"><api:param-description>
    Options to control access to the temporal collection:  
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
        <dl>
         <dt> <pre>updates-admin-override</pre>
        </dt>
	<dd>    
		Specifies that users with the admin role can change or delete 
		temporal documents using non-temporal functions, such as 
		<code>xdmp:document-insert</code> and 
		<code>xdmp:document-delete</code>.
        </dd>
         <dt> <pre>updates-safe</pre>
        </dt>
	<dd>
	Specifies that no users, including those with the admin role, can 
	change or delete temporal documents in a non-temporal manner. 
	This is the default.
        </dd>
        </dl> 
        </blockquote> 
    </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var temporal = require("/MarkLogic/temporal.xqy");

temporal.collectionSetOptions("kool", ["updates-admin-override"]) ;
 
// Sets the "updates-admin-override" option on the "kool" collection. 
</pre></api:example></api:function></api:function-page>