Place a New Email Message Into a Folder using AMPscript and the SOAP Web Service API
This AMPscript locates the folder you want to use for email storage and places the new email message in that folder. Use this information to organize your email messages in different folders. Once you organize those messages, assign user permissions to those folders to allow access to only those users who need to use those messages.
Use this sample AMPscript as a model for your own AMPscript: