Creating a folder
Many operations that create an item must be accomplished using multiple operations. The following example shows how to use CreateFolder to create a folder in the working directory. Then, it uses UpdateFile to set the access type and autoarchive rules. AccessType defines whether the folder is shared or private. ArchiveRule defines when and how to archive the folder. In ArchiveRule, the file type $$$ indicates a folder.
<SOAP-ENV:Body>
<Administrate>
<AdminOperation>
<Transaction>
<TransactionOperation>
<CreateFolder>
<FolderName>/Requirements</FolderName>
<IgnoreDup>false</IgnoreDup>
</CreateFolder>
<UpdateFile>
<SetAttributes>
<AccessType>Private</AccessType>
</SetAttributes>
<SetArchiveRules>
<ArchiveRule>
<FileType>$$$</FileType>
<NeverExpire>false</NeverExpire>
<ArchiveOnExpiration>true
</ArchivnExpiration>
<ExpirationAge>86400</ExpirationAge>
<IsInherited>false</IsInherited>
</ArchiveRule>
</SetArchiveRules>
<Name>/Requirements</Name>
</UpdateFile>
</TransactionOperation> </Transaction>
</AdminOperation>
</Administrate>
</SOAP-ENV:Body>
The response to a successful CreateFolder request is an empty Administrate response if the request succeeds. If the request fails, an error message appears.