Aging and archiving Encyclopedia volume items : Aging and archiving an item using the Actuate Information Delivery API : Setting and updating autoarchive rules using IDAPI : Updating the autoarchive rules for a file type in a folder or volume
 
Updating the autoarchive rules for a file type in a folder or volume
Use UpdateFile to change the default autoarchive rules for a file type in a folder or volume. Indicate the file type in the ArchiveRule element. In the NameList element, specify the folder to which the new rules apply. In the following example, the new rules apply to all files with the .rpt extension in the Inventory folder, unless individual files of that type already have autoarchive rules. Express the expiration age in minutes.
<SOAP-ENV:Body>
<Administrate>
<UpdateFile>
<SetArchiveRules>
<ArchiveRule>
<FileType>rpt</FileType>
<NeverExpire>false</NeverExpire>
<ArchiveOnExpiration>true</ArchiveOnExpiration>
<ExpirationAge>2880</ExpirationAge>
</ArchiveRule>
</SetArchiveRules>
<NameList>
<String>/Inventory</String>
</NameList>
</UpdateFile>
</Administrate>
</SOAP-ENV:Body>
As with other Administrate operations, the response to this request is empty when the operation succeeds. If the request fails, the response is an error message.