PUT/users/{userId}/mail/mailfolders/{folderId}
Renames a specified folder.
Caution
- System folders whose folderIds are less than 100 cannot be renamed.
- To rename a child folder in a hierarchical structure, the new child folder name must include the parent folder name. For example, if you want to rename ChildFolder in the following structure, you should set "ParentFolder/newChildFolder" for
folderName.ParentFolder ChildFolder
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
| Parameter | Type | Description |
|---|---|---|
| userId | string | Member ID (must be URL-encoded)
required example : me |
| folderId | string | Folder ID required example : 1 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| folderName | string | Folder name required minLength : 1 maxLength : 100 |
example
1{2 "folderName": "newFolderName"3}OK
| Property | Type | Description |
|---|---|---|
| folderName | string | Folder name required minLength : 1 |
| folderId | integer | Folder ID required format : int32 |
example
1{2 "folderId": 10001,3 "folderName": "test"4}