Setting default autoarchive rules when creating a folder
Use CreateFolder followed by UpdateFile to set autoarchive rules for a folder when you create the folder. In UpdateFile, set the ArchiveRule element of SetArchiveRules. In the following example, FileType $$$ indicates that the file is a folder. The autoarchive rules you set in the request apply to all file types in the folder except those that already have archive rules. When NeverExpire is False, you must set either an expiration date or an expiration age. Express the expiration age in minutes.
<SOAP-ENV:Body>
<Administrate>
<Transaction>
<CreateFolder>
<FolderName>/Inventory/Timeshares</FolderName>
<IgnoreDup>false</IgnoreDup>
</CreateFolder>
<UpdateFile>
<SetArchiveRules>
<ArchiveRule>
<FileType>$$$</FileType>
<NeverExpire>false</NeverExpire>
<ArchiveOnExpiration>true</ArchiveOnExpiration>
<ExpirationAge>14400</ExpirationAge>
<IsInherited>false</IsInherited>
</ArchiveRule>
</SetArchiveRules>
<Name>/Inventory/Timeshares</Name>
</UpdateFile>
</Transaction>
</Administrate>
</SOAP-ENV:Body>
As with other Administrate operations, the response to this request is empty when the operation succeeds. In the event of failure, the response is an error message.