POST/users/{userId}/mail/mailfolders

Adds a folder.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

mail

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/mail/mailfolders

Path Parameters

ParameterTypeDescription
userId string 

Member ID (must be URL-encoded)

  • User ID
  • Login ID (email)
  • Me

required
example : me 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
folderName string 

Folder name


required
minLength : 1
maxLength : 100 

Request Example

example

1{2  "folderName": "FolderName"3}

Response

HTTP 201

OK

PropertyTypeDescription
folderName string 

Folder name


required
minLength : 1 
folderId integer 

Folder ID


required
format : int32 

Response Example

example

1{2  "folderId": 10001,3  "folderName": "test"4}

HTTP 409

Conflict