Creates a user folder with the name specified in the request.
Name | Description | Type | Example |
name
sent in body
|
Folder name | string | some text |
parentId
sent in body
|
Parent folder ID (root level is equal to 0) | number | 1234 |
POST api/2.0/mail/userfolders Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "name": "some text", "parentId": 1234 }
Folder information
application/json
{ "status": 0, "response": { "id": 1234, "parent": 1234, "name": "name", "unread_count": 123, "total_count": 123, "unread_chain_count": 123, "total_chain_count": 123, "folder_count": 123 } }
text/xml
<result> <status>0</status> <response> <id>1234</id> <parent>1234</parent> <name>name</name> <unread_count>123</unread_count> <total_count>123</total_count> <unread_chain_count>123</unread_chain_count> <total_chain_count>123</total_chain_count> <folder_count>123</folder_count> </response> </result>