POST/users/{userId}/mail/mailfolders

메일함을 추가한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.

Scope

mail

HTTP Request

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

Path Parameters

ParameterTypeDescription
userId string 

구성원 ID (URL인코딩하여 사용)

  • 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 

메일함 이름


required
minLength : 1
maxLength : 100 

Request Example

example

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

Response

HTTP 201

OK

PropertyTypeDescription
folderName string 

메일함 이름


required
minLength : 1 
folderId integer 

메일함 ID


required
format : int32 

Response Example

example

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

HTTP 409

Conflict